32 lines
946 B
PHP
32 lines
946 B
PHP
<?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');
|
|
});
|
|
}
|
|
}
|
|
}
|