diff --git a/playwright.ci.config.ts b/playwright.ci.config.ts index af26d0b..d7b16ea 100644 --- a/playwright.ci.config.ts +++ b/playwright.ci.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ - forbidOnly: false, + forbidOnly: !!process.env.CI, /* Retry on CI only */ retries: process.env.CI ? 2 : 1, /* Opt out of parallel tests on CI. */ diff --git a/playwright/specs/01-pin-input.spec.ts b/playwright/specs/01-pin-input.spec.ts index 16d50a5..c5be8d0 100644 --- a/playwright/specs/01-pin-input.spec.ts +++ b/playwright/specs/01-pin-input.spec.ts @@ -13,7 +13,7 @@ test.describe("Create Account and Login Tests", () => { const status = faker.lorem.sentence(3); const pinNumber = "123456"; - test.only("A1, A9, A11 - Enter valid PIN redirects to Main Page", async ({ + test("A1, A9, A11 - Enter valid PIN redirects to Main Page", async ({ enterPinUserContext, }) => { const page = enterPinUserContext.page;