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.
21 lines
494 B
PHP
21 lines
494 B
PHP
<?php
|
|
|
|
it('loads the Norwegian homepage', function () {
|
|
$this->visit(BASE_URL . '/')
|
|
->assertSourceHas('Stopp lidelsen');
|
|
});
|
|
|
|
it('shows the news section', function () {
|
|
$this->visit(BASE_URL . '/')
|
|
->assertSee('Nyheter');
|
|
});
|
|
|
|
it('shows the petition section', function () {
|
|
$this->visit(BASE_URL . '/')
|
|
->assertSee('underskrift');
|
|
});
|
|
|
|
it('shows the newsletter section', function () {
|
|
$this->visit(BASE_URL . '/')
|
|
->assertSee('nyhetsbrev');
|
|
});
|