From f71d99a142065aa5e88caa68e849597b06586838 Mon Sep 17 00:00:00 2001 From: Praveen K B <30530587+praveen5959@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:30:39 +0530 Subject: [PATCH] fix: remove unused variables from login.spec.ts (#380) --- .github/workflows/playwright.yml | 2 ++ tests/login.spec.ts | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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 () => {