style updates

This commit is contained in:
Mark Gregory
2026-06-23 13:39:02 +01:00
parent e79cadc7f8
commit 3be4ff590f
129 changed files with 482 additions and 404 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class AuthBrowserTest extends DuskTestCase
$browser->waitUntil(
'window.location.pathname === "/" || window.location.pathname === "/login" || ! document.querySelector(".wms-app-shell")',
15
15,
);
});
}
@@ -54,7 +54,7 @@ if (link) {
window.location.href = expectedPath;
}
JS,
json_encode($path, JSON_THROW_ON_ERROR)
json_encode($path, JSON_THROW_ON_ERROR),
));
$browser->waitForLocation($path, 15);
@@ -19,7 +19,7 @@ trait InteractsWithWmsData
/**
* Create or update the MPBA platform administrator used by browser tests.
*
* @param array<string, mixed> $overrides
* @param array<string, mixed> $overrides
*/
protected function platformAdminUser(array $overrides = []): User
{
@@ -53,7 +53,7 @@ trait InteractsWithWmsData
}
/**
* @param array<string, mixed> $overrides
* @param array<string, mixed> $overrides
*/
protected function tenantCompany(array $overrides = []): Company
{
@@ -79,7 +79,7 @@ trait InteractsWithWmsData
}
/**
* @param array<string, mixed> $overrides
* @param array<string, mixed> $overrides
*/
protected function tenantUser(array $overrides = []): User
{
@@ -160,7 +160,8 @@ trait InteractsWithWmsData
}
/**
* @param array<int, string> $features
* @param array<int, string> $features
*
* @return array<string, mixed>
*/
private function platformPriceAttributes(
@@ -17,8 +17,8 @@ class PlatformAdministrationBrowserTest extends DuskTestCase
$admin = $this->platformAdminUser();
$this->seedPlatformDashboardData();
$companyName = 'Abbott Logistics '.uniqid();
$billingEmail = 'billing+'.uniqid().'@abbott.example';
$companyName = 'Abbott Logistics ' . uniqid();
$billingEmail = 'billing+' . uniqid() . '@abbott.example';
$this->browse(function (Browser $browser) use ($admin): void {
$browser->loginAs($admin)
@@ -32,8 +32,8 @@ class PlatformAdministrationBrowserTest extends DuskTestCase
$admin = $this->platformAdminUser();
$unique = str_replace('.', '', uniqid('', true));
$companyName = 'Abbott Logistics '.$unique;
$billingEmail = 'billing+'.$unique.'@abbott.example';
$companyName = 'Abbott Logistics ' . $unique;
$billingEmail = 'billing+' . $unique . '@abbott.example';
$this->browse(function (Browser $browser) use ($admin, $companyName, $billingEmail): void {
$browser->loginAs($admin)
+1 -1
View File
@@ -61,7 +61,7 @@ class PlatformPricingBrowserTest extends DuskTestCase
$this->assertSingleProfessionalHeader($browser, '');
$browser->assertPresent('input[name="name"]')
->assertPresent('input[name="monthly_amount"]')
->visit('/admin/prices/'.$price->id.'/edit');
->visit('/admin/prices/' . $price->id . '/edit');
$this->assertSingleProfessionalHeaderExists($browser);
$browser->assertPresent('input[name="name"]')
+6 -7
View File
@@ -3,7 +3,6 @@
namespace Tests\Browser;
use Laravel\Dusk\Browser;
use Modules\Warehouse\app\Models\WarehouseValidationRule;
use Tests\Browser\Concerns\InteractsWithWmsBrowser;
use Tests\Browser\Concerns\InteractsWithWmsData;
use Tests\DuskTestCase;
@@ -17,8 +16,8 @@ class WarehouseBrowserTest extends DuskTestCase
{
$user = $this->tenantUser();
$warehouse = $this->seedWarehouse($user->company);
$ruleName = 'Require expiry date '.uniqid();
$ruleKey = 'expiry-required-'.uniqid();
$ruleName = 'Require expiry date ' . uniqid();
$ruleKey = 'expiry-required-' . uniqid();
$this->browse(function (Browser $browser) use ($user, $warehouse, $ruleName, $ruleKey): void {
$browser->loginAs($user)
@@ -56,8 +55,8 @@ class WarehouseBrowserTest extends DuskTestCase
$user->company->warehouses()->delete();
$warehouseName = 'East Midlands DC '.uniqid();
$warehouseCode = 'E'.substr(strtoupper(uniqid()), -4);
$warehouseName = 'East Midlands DC ' . uniqid();
$warehouseCode = 'E' . substr(strtoupper(uniqid()), -4);
$this->browse(function (Browser $browser) use ($user, $warehouseName, $warehouseCode): void {
$browser->loginAs($user)
@@ -79,8 +78,8 @@ class WarehouseBrowserTest extends DuskTestCase
$user = $this->tenantUser();
$warehouse = $this->seedWarehouse($user->company);
$ruleName = 'Require serial number '.uniqid();
$ruleKey = 'serial-required-'.uniqid();
$ruleName = 'Require serial number ' . uniqid();
$ruleKey = 'serial-required-' . uniqid();
$this->browse(function (Browser $browser) use ($user, $warehouse, $ruleName, $ruleKey): void {
$browser->loginAs($user)