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 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 () => {