From 39e6e9405cf27788ce5dcda4da6ae37b997a942d Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Mon, 10 Aug 2026 16:40:33 -0300 Subject: [PATCH] =?UTF-8?q?style(OPS30):=20prettier=20=E2=80=94=20formata?= =?UTF-8?q?=C3=A7=C3=A3o=20do=20login=20retry=20no=20fixture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/e2e/fixtures/campaignE2EFixtures.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/e2e/fixtures/campaignE2EFixtures.ts b/tests/e2e/fixtures/campaignE2EFixtures.ts index 50c0a610..7a4f42b6 100644 --- a/tests/e2e/fixtures/campaignE2EFixtures.ts +++ b/tests/e2e/fixtures/campaignE2EFixtures.ts @@ -633,8 +633,7 @@ export const campaignFixture: CampaignE2EFixtureValue = async ({}, runFixture) = // crisp wait error, not a generic test timeout. A second failure // surfaces — wrong credentials fail both attempts. const dashboardURL = `${baseURL}/campanha` - const onDashboard = (url: string) => - url === dashboardURL || url === `${dashboardURL}/` + const onDashboard = (url: string) => url === dashboardURL || url === `${dashboardURL}/` const submitLogin = async () => { await page.getByLabel('E-mail ou celular').fill(identifier) await page.getByLabel('Senha').fill(password) @@ -653,9 +652,7 @@ export const campaignFixture: CampaignE2EFixtureValue = async ({}, runFixture) = const current = page.url() if (onDashboard(current)) return if (!current.startsWith(`${baseURL}/campanha/login`)) { - throw new Error( - `Login retry aborted: page left the login screen (${current}).`, - ) + throw new Error(`Login retry aborted: page left the login screen (${current}).`) } await submitLogin() await page.waitForURL(dashboardURL, { timeout: 30_000 })