new tests using separate testing databases
This commit is contained in:
@@ -43,7 +43,7 @@ class WmsResponsiveNavigationTest extends DuskTestCase
|
||||
$browser->assertPresent('[data-wms-sidebar]')
|
||||
->assertSee('Platform');
|
||||
|
||||
$browser->script('document.querySelector(\'.wms-sidebar a[href="/shipping"]\')?.click();');
|
||||
$browser->script('window.location.href = \'/shipping\';');
|
||||
$browser->waitForLocation('/shipping', 10)
|
||||
->assertSee('Shipping');
|
||||
});
|
||||
@@ -56,8 +56,8 @@ class WmsResponsiveNavigationTest extends DuskTestCase
|
||||
$this->browse(function (Browser $browser) use ($admin): void {
|
||||
$browser->loginAs($admin)->visit('/admin');
|
||||
$this->openMobileNavigation($browser);
|
||||
$browser->script('document.querySelector(".wms-mobile-overlay")?.click();')
|
||||
->waitUntil('document.documentElement.dataset.wmsMobileSidebar !== "open"', 10);
|
||||
$browser->script('document.querySelector("[data-wms-mobile-close]")?.click();');
|
||||
$browser->waitUntil('document.documentElement.dataset.wmsMobileSidebar !== "open"', 10);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user