Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Components/Toast.php
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | public function assertToastMessage($browser, string $message) | ||||
$browser->assertSeeIn('@message', $message); | $browser->assertSeeIn('@message', $message); | ||||
} | } | ||||
/** | /** | ||||
* Close the toast with a click | * Close the toast with a click | ||||
*/ | */ | ||||
public function closeToast($browser) | public function closeToast($browser) | ||||
{ | { | ||||
$this->element->findElements(WebDriverBy::cssSelector('button.close'))[0]->click(); | $this->element->findElements(WebDriverBy::cssSelector('.btn-close'))[0]->click(); | ||||
} | } | ||||
} | } |