miniauth/playwright/tests/example.spec.js
2025-03-14 00:41:32 +01:00

17 lines
518 B
JavaScript

// @ts-check
import { test, expect } from '@playwright/test';
test('check ping route', async ({ page }) => {
await page.goto('/ping');
// Expects page to have a heading with the name of Installation.
await expect(page.getByText('pong')).toBeVisible();
});
test('see register page', async ({page}) => {
await page.goto('/web/register');
await expect(page.getByRole('heading', { name: 'Registrieren'})).toBeVisible();
await expect(page.getByRole('button', { name: 'Registrieren' })).toBeVisible();
})