diff --git a/tests/Browser/CommunicationTest.php b/tests/Browser/CommunicationTest.php index 8592dab2..c34a0813 100644 --- a/tests/Browser/CommunicationTest.php +++ b/tests/Browser/CommunicationTest.php @@ -78,7 +78,8 @@ it('runs a toast\'s action and dismisses it', function () { $page->click('[x-data="materialSnackbar"] button:has-text("Undo")') ->assertScript('window.__undone === true') - ->assertScript(SNACKBAR.' === null'); + ->assertScript(TOAST.' === null') + ->assertScript(SNACKBAR.' !== null'); }); it('does not let a toast dismissed early cut the next one short', function () {