This repository has been archived on 2025-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
miniauthold/playwright/tests/example.spec.js
kekskurse 107d32586e
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/playwright Pipeline failed
ci/woodpecker/push/deplyoment unknown status
register page
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();
})