createTestUser("login-test@example.com"); $filePath = base_path('tests/Browser/fixtures/robot.webp'); $this->browse(function (Browser $browser) use ($user, $filePath) { $this->loginUser($browser, $user); $this->assertWithDebugPause( $browser, fn($b) => $b->visit('/admin/media') ->waitForLocation('/admin/media') ->assertPathIs('/admin/media') ->assertTitleContains('Media') ->clickLink('Add') ->waitForText('Create Asset') ->type('#form\\.alt_text', 'test image') ->assertVisible('.filepond--drop-label') ->attach('.filepond--browser', $filePath) ->pause(7000) ->waitForText('Create') ->waitFor('#key-bindings-1:not([disabled])') ->click('#key-bindings-1'), 1000 // Custom pause time for this test ); }); } }