diff --git a/e2e/tests/integrations/admin/activate-integration.test.ts b/e2e/tests/integrations/admin/activate-integration.test.ts index 3c08b5fc5..0368faf56 100644 --- a/e2e/tests/integrations/admin/activate-integration.test.ts +++ b/e2e/tests/integrations/admin/activate-integration.test.ts @@ -18,7 +18,11 @@ test("As an admin I can activate an integration", async ({ page }) => { ); // activate integration - await page.goto(`/admin/resources/integrations/${integrationId}`); + const targetUrl = `/admin/resources/integrations/${integrationId}`; + if (!page.url().endsWith(targetUrl)) { + await page.goto(targetUrl); + } + await page.locator(`[dusk="${integrationId}-control-selector"]`).click(); await page.getByRole("button", { name: "Activate Integration" }).click(); await page.locator("#organization").selectOption(organizationId);