Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser.php
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | public function assertToast(string $type, string $message, $title = null) | ||||
->closeToast(); | ->closeToast(); | ||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
* Assert specified error page is displayed. | * Assert specified error page is displayed. | ||||
*/ | */ | ||||
public function assertErrorPage(int $error_code) | public function assertErrorPage(int $error_code, string $hint = '') | ||||
{ | { | ||||
$this->with(new Error($error_code), function ($browser) { | $this->with(new Error($error_code, $hint), function ($browser) { | ||||
// empty, assertions will be made by the Error component itself | // empty, assertions will be made by the Error component itself | ||||
}); | }); | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | /** | ||||
* Assert that the given element has specified class assigned. | * Assert that the given element has specified class assigned. | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |