Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser.php
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | public function assertTextRegExp($selector, $regexp) | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | /** | ||||
* Remove all toast messages | * Remove all toast messages | ||||
*/ | */ | ||||
public function clearToasts() | public function clearToasts() | ||||
{ | { | ||||
$this->script("jQuery('.toast-container > *').remove()"); | $this->script("\$('.toast-container > *').remove()"); | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | /** | ||||
* Wait until a button becomes enabled and click it | * Wait until a button becomes enabled and click it | ||||
*/ | */ | ||||
public function clickWhenEnabled($selector) | public function clickWhenEnabled($selector) | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |