test: User can sign in

This commit is contained in:
Tibo De Peuter 2025-04-13 13:16:51 +02:00
parent e5e474436d
commit 30ce800d0b
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -0,0 +1,17 @@
import { test, expect } from '@playwright/test';
test('User can pick their language', async ({ page }) => {
await page.goto('/');
await expect(page.getByRole('button', { name: 'translate' })).toBeVisible();
await page.getByRole('button', { name: 'translate' }).click();
await page.getByText('Nederlands').click();
await expect(page.locator('h1')).toContainText('Onze sterke punten');
await expect(page.getByRole('heading', { name: 'Innovatief' })).toBeVisible();
await expect(page.getByRole('button', { name: 'vertalen' })).toBeVisible();
await page.getByRole('button', { name: 'vertalen' }).click();
await page.getByText('English').click();
await expect(page.locator('h1')).toContainText('Our strengths');
await expect(page.getByRole('heading', { name: 'Innovative' })).toBeVisible();
});