mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-13 15:42:55 +09:00
26 lines
657 B
PHP
26 lines
657 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use function Tests\Helpers\browserBaseUrl;
|
|
|
|
$pages = [
|
|
['path' => '/', 'text' => null],
|
|
['path' => '/login', 'text' => 'Login to Your Account'],
|
|
['path' => '/signup', 'text' => 'Create a new account'],
|
|
['path' => '/password-reset', 'text' => 'Reset Your Password'],
|
|
['path' => '/order', 'text' => null],
|
|
];
|
|
|
|
foreach ($pages as ['path' => $path, 'text' => $text]) {
|
|
it("loads {$path}", function () use ($path, $text): void {
|
|
$page = visit(browserBaseUrl() . $path);
|
|
|
|
$page->assertVisible('body');
|
|
|
|
if ($text !== null) {
|
|
$page->assertSee($text);
|
|
}
|
|
});
|
|
}
|