innhold/tests/Browser/NavigationTest.php
Ruben b8e6d2537d Add browser and unit test suite with Pest + Playwright
Add comprehensive test coverage for core site features (content,
navigation, language, FAQ, news, petition, newsletter) using Pest
browser tests and unit tests for custom plugins. Includes test
infrastructure (Containerfile.test, compose.test.yaml), test
documentation, and test files covering petition form logic, CSV
handling, translation, date formatting, rate limiting, and map data
building.
2026-03-17 16:43:39 +01:00

31 lines
797 B
PHP

<?php
it('navigates to the news section', function () {
$this->visit(BASE_URL . '/nyheter')
->assertSee('Nyheter');
});
it('navigates to the FAQ section', function () {
$this->visit(BASE_URL . '/faq')
->assertSourceHas('<main');
});
it('navigates to the about page', function () {
$this->visit(BASE_URL . '/om-oss')
->assertSourceHas('<main');
});
it('navigates to the petition page', function () {
$this->visit(BASE_URL . '/underskriftskampanje')
->assertSourceHas('<main');
});
it('navigates to the contact page', function () {
$this->visit(BASE_URL . '/kontakt')
->assertSourceHas('<main');
});
it('navigates to the privacy page', function () {
$this->visit(BASE_URL . '/personvern')
->assertSourceHas('<main');
});