Assert that a JavaScript dialog with the given message has been opened:
$browser->assertDialogOpened($message);