new branding

This commit is contained in:
Mark Gregory
2026-06-19 10:15:21 +01:00
parent d84c32e441
commit 29ed273200
9 changed files with 413 additions and 281 deletions
@@ -0,0 +1,31 @@
<?php
namespace Tests\Browser\Auth;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
class AuthBrandingLayoutBrowserTest extends DuskTestCase
{
/**
* Ensure guest authentication pages keep the professional WMS branding and do not overflow horizontally.
*/
public function test_guest_authentication_pages_are_branded_and_do_not_overflow(): void
{
$pages = [
route('login'),
route('register'),
route('password.request'),
];
foreach ($pages as $page) {
$this->browse(function (Browser $browser) use ($page): void {
$browser->resize(1280, 900)
->visit($page)
->assertSee('WMS')
->assertSee('Warehouse Management System')
->assertScript('document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1');
});
}
}
}