mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2025-06-25 16:43:30 +02:00
15 lines
573 B
TypeScript
15 lines
573 B
TypeScript
const { test, expect } = require('@playwright/test');
|
|
|
|
import { goToHome, setLang } from './utils/app.utils';
|
|
|
|
test.describe('Zonemaster test FR01 - [A Home button that sends the user to the default simple view]', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await goToHome(page);
|
|
await setLang(page, 'en');
|
|
});
|
|
|
|
test('should have a link to go to home page', async ({ page }) => {
|
|
await expect(page.locator('a.navbar-brand')).toHaveAttribute('href', '/en/');
|
|
await expect(page.locator('a.navbar-brand')).toHaveAttribute('routerLink', '/');
|
|
});
|
|
});
|