new branding
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user