Repo rebuild

This commit is contained in:
Mark Gregory
2026-09-15 12:33:28 +01:00
commit be28c4feec
5629 changed files with 317074 additions and 0 deletions
@@ -0,0 +1,44 @@
<?php
namespace Tests\Browser;
use Laravel\Dusk\Browser;
use Tests\Browser\Concerns\InteractsWithWmsBrowser;
use Tests\Browser\Concerns\InteractsWithWmsData;
use Tests\DuskTestCase;
class ResponsiveBaselineBrowserTest extends DuskTestCase
{
use InteractsWithWmsBrowser;
use InteractsWithWmsData;
public function test_core_pages_render_on_mobile_tablet_and_desktop(): void
{
$admin = $this->platformAdminUser();
$this->seedPlatformDashboardData();
$pages = [
['/admin', 'Platform'],
['/platform/pricing', 'Pricing'],
['/admin/prices', ''],
['/warehouses', 'Warehouses'],
['/warehouse-rules', 'Validation Rules'],
['/shipping', 'Shipping'],
];
$sizes = [[390, 844], [768, 1024], [1440, 1000]];
$this->browse(function (Browser $browser) use ($admin, $pages, $sizes): void {
$browser->loginAs($admin);
foreach ($sizes as [$width, $height]) {
$browser->resize($width, $height);
foreach ($pages as [$path, $title]) {
$browser->visit($path);
$this->assertSingleProfessionalHeader($browser, $title);
}
}
});
}
}