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('New media') ->waitForText('Create Media') ->type('#form\\.name', 'test image') ->assertVisible('.filepond--drop-label') ->attach('.filepond--browser', $filePath) ->pause(7000) ->waitForText('Create') ->waitFor('#key-bindings-1:not([disabled])') ->click('#key-bindings-1') ->assertSee('Collection name'), 1000 // Custom pause time for this test ); }); } }