From 20e580d33b59ccf34ccb27a18a329a520564bd9c Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Tue, 23 Jun 2026 08:38:50 +0100 Subject: [PATCH] Patched the warehouse creation test, the tenant company has hit the warehouse licence/cap, so the form submits but the new warehouse is not created. --- tests/Browser/WarehouseBrowserTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Browser/WarehouseBrowserTest.php b/tests/Browser/WarehouseBrowserTest.php index 8e9ab0f4..8a4336af 100644 --- a/tests/Browser/WarehouseBrowserTest.php +++ b/tests/Browser/WarehouseBrowserTest.php @@ -54,6 +54,8 @@ class WarehouseBrowserTest extends DuskTestCase { $user = $this->tenantUser(); + $user->company->warehouses()->delete(); + $warehouseName = 'East Midlands DC '.uniqid(); $warehouseCode = 'E'.substr(strtoupper(uniqid()), -4); @@ -62,11 +64,12 @@ class WarehouseBrowserTest extends DuskTestCase ->visit('/warehouses'); $this->assertSingleProfessionalHeader($browser, 'Warehouses'); + $browser->type('code', $warehouseCode) ->type('name', $warehouseName) ->type('address', 'Main Road, Nottingham') ->press('Create') - ->waitForText($warehouseName, 10) + ->waitForText($warehouseName, 20) ->assertSee($warehouseName); }); }