From 8d9611b28516b9085ad0f01dd9fc9716a88b969b Mon Sep 17 00:00:00 2001 From: Praveen K B Date: Tue, 19 Nov 2024 10:24:08 +0530 Subject: [PATCH 1/2] fix: Removed unused variables from login.spec.ts --- tests/login.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/login.spec.ts b/tests/login.spec.ts index c4a45784..d1507996 100644 --- a/tests/login.spec.ts +++ b/tests/login.spec.ts @@ -1,14 +1,13 @@ -import { test, expect, BrowserContext, Page } from '@playwright/test'; +import { test, expect, BrowserContext } from '@playwright/test'; const TEST_URL = 'http://localhost:3001'; test.describe('Login Page', () => { let context: BrowserContext; - let page: Page; test.beforeEach(async ({ browser }) => { context = await browser.newContext(); - page = await context.newPage(); + await context.newPage(); }); test.afterEach(async () => { From 85e7535e8468c5f816f7ff5e65465d30231908bd Mon Sep 17 00:00:00 2001 From: Praveen K B Date: Tue, 19 Nov 2024 10:27:07 +0530 Subject: [PATCH 2/2] Added build step in playwright GH Action --- .github/workflows/playwright.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 96eb75f9..2ea4c04e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -15,6 +15,8 @@ jobs: node-version: lts/* - name: Install dependencies run: npm install -g pnpm && pnpm install + - name: Build Console + run: pnpm run build - name: Install Playwright Browsers run: pnpm exec playwright install --with-deps - name: Run Playwright tests