Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Admin/DashboardTest.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | public function testSearch(): void | ||||
// TODO: Assert table content | // TODO: Assert table content | ||||
}); | }); | ||||
// Test search with single record result -> redirect to user page | // Test search with single record result -> redirect to user page | ||||
$browser->type('@search input', 'kolab.org') | $browser->type('@search input', 'kolab.org') | ||||
->click('@search form button') | ->click('@search form button') | ||||
->assertMissing('@search table') | ->assertMissing('@search table') | ||||
->waitForLocation('/user/' . $john->id) | ->waitForLocation('/user/' . $john->id) | ||||
->waitFor('#user-info') | ->waitUntilMissing('.app-loader') | ||||
->assertSeeIn('#user-info .card-title', $john->email); | ->whenAvailable('#user-info', function (Browser $browser) use ($john) { | ||||
$browser->assertSeeIn('.card-title', $john->email); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
} | } |