Skip to content

Commit f71d99a

Browse files
authored
fix: remove unused variables from login.spec.ts (#380)
1 parent 3b98fc1 commit f71d99a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/playwright.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
node-version: lts/*
1616
- name: Install dependencies
1717
run: npm install -g pnpm && pnpm install
18+
- name: Build Console
19+
run: pnpm run build
1820
- name: Install Playwright Browsers
1921
run: pnpm exec playwright install --with-deps
2022
- name: Run Playwright tests

tests/login.spec.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import { test, expect, BrowserContext, Page } from '@playwright/test';
1+
import { test, expect, BrowserContext } from '@playwright/test';
22

33
const TEST_URL = 'http://localhost:3001';
44

55
test.describe('Login Page', () => {
66
let context: BrowserContext;
7-
let page: Page;
87

98
test.beforeEach(async ({ browser }) => {
109
context = await browser.newContext();
11-
page = await context.newPage();
10+
await context.newPage();
1211
});
1312

1413
test.afterEach(async () => {

0 commit comments

Comments
 (0)