gitbutler/apps/web/tests/init.spec.ts
2024-10-26 17:24:23 +02:00

17 lines
465 B
TypeScript

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();
});