gitbutler/app/e2e/playwright/basic.spec.ts

16 lines
411 B
TypeScript
Raw Normal View History

2024-05-02 15:55:41 +03:00
import { test, expect } from '@playwright/test';
test('has empty title', async ({ page }) => {
2024-05-05 19:33:40 +03:00
await page.goto('http://localhost:1420');
2024-05-02 15:55:41 +03:00
2024-05-05 19:44:55 +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 }) => {
await page.goto('http://localhost:1420');
2024-05-05 19:44:55 +03:00
const listBox = page.getByRole('listbox').getByRole('button')
2024-05-05 21:22:01 +03:00
await expect(listBox).toHaveText('package.json');
2024-05-05 19:44:55 +03:00
})