gitbutler/apps/web/tests/init.spec.ts

17 lines
465 B
TypeScript
Raw Normal View History

2024-10-26 15:41:27 +03:00
import { test, expect } from '@playwright/test';
test('has title', async ({ page }) => {
await page.goto('/');
await expect(page).toHaveTitle(/Home/);
});
test('downloads load', async ({ page }) => {
await page.goto('/');
await page.getByRole('link', { name: 'Downloads' }).click();
await expect(page.getByRole('heading', { name: 'Stable Release' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Nightly Release' })).toBeVisible();
});