blob: 6e6aef1d4bd2228e1d3c3f77f8a35de5869f17c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { expect, test } from '@playwright/test';
import { Page } from 'playwright';
import { startApp } from './utils';
let appWindow: Page;
test.beforeAll(async () => {
const startAppResponse = await startApp();
appWindow = startAppResponse.appWindow;
await appWindow.click('button[aria-label="Settings"]');
});
test.afterAll(async () => {
await appWindow.close();
});
test('Settings Page', async () => {
const title = await appWindow.locator('h1');
await expect(title).toContainText('Settings');
const closeButton = await appWindow.locator('button[aria-label="Close"]');
await expect(closeButton).toBeVisible();
});
|