UPDATED TESTS

This commit is contained in:
Mark Gregory
2026-06-11 14:45:25 +01:00
parent 8b9de7426a
commit cad45a870d
13 changed files with 888 additions and 8 deletions
+19 -5
View File
@@ -4,18 +4,32 @@ namespace Tests\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\Browser\Concerns\InteractsWithWmsData;
use Tests\DuskTestCase;
class ExampleTest extends DuskTestCase
{
/**
* A basic browser test example.
*/
public function test_basic_example(): void
use DatabaseMigrations;
use InteractsWithWmsData;
public function test_application_homepage_is_reachable_in_browser(): void
{
$this->browse(function (Browser $browser) {
$this->browse(function (Browser $browser): void {
$browser->visit('/')
->assertSee('Laravel');
});
}
public function test_authenticated_application_shell_is_reachable_in_browser(): void
{
$admin = $this->platformAdminUser();
$this->browse(function (Browser $browser) use ($admin): void {
$browser->loginAs($admin)
->visit('/admin')
->waitFor('.wms-app-shell', 5)
->assertPresent('.wms-sidebar')
->assertPresent('.wms-content');
});
}
}