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.
This commit is contained in:
Ruben 2026-03-17 16:43:39 +01:00
parent 0b61643ec5
commit b8e6d2537d
20 changed files with 1331 additions and 33 deletions

View file

@ -0,0 +1,11 @@
<?php
it('serves the Norwegian homepage by default', function () {
$this->visit(BASE_URL . '/')
->assertSourceHas('lang="no"');
});
it('english news section is accessible', function () {
$this->visit(BASE_URL . '/en/nyheter')
->assertSourceHas('<main');
});