2024-05-02 15:55:41 +03:00
|
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
|
2024-05-05 20:04:07 +03:00
|
|
|
test('has empty title', async ({ page }) => {
|
2024-05-06 14:06:13 +03:00
|
|
|
await page.goto('http://localhost:1420');
|
2024-05-02 15:55:41 +03:00
|
|
|
|
2024-05-06 14:06:13 +03:00
|
|
|
await expect(page).toHaveTitle('');
|
2024-05-02 15:55:41 +03:00
|
|
|
});
|
2024-05-05 19:44:55 +03:00
|
|
|
|
|
|
|
test('has text package.json', async ({ page }) => {
|
2024-05-06 14:06:13 +03:00
|
|
|
await page.goto('http://localhost:1420');
|
2024-05-05 20:04:07 +03:00
|
|
|
|
2024-06-06 11:25:26 +03:00
|
|
|
const listBox = page.getByRole('listbox').getByRole('button').first();
|
2024-05-05 20:04:07 +03:00
|
|
|
|
2024-05-06 14:06:13 +03:00
|
|
|
await expect(listBox).toHaveText('package.json');
|
|
|
|
});
|