1
0
resumarkdown/tests/general.test.ts

18 lines
509 B
TypeScript

import { expect, test } from '@playwright/test';
test('page has headline', async ({ page }) => {
await page.goto('/');
const headline = page.locator('header h1');
await expect(headline).toBeVisible();
await expect(headline).toHaveText('resumarkdown');
});
test('nav items work', async ({ page }) => {
await page.goto('/');
for (const tab of await page.getByRole('tab').all()) {
await tab.click();
await expect(page.getByTestId(`${await tab.textContent()}-pane`)).toBeVisible();
}
});