Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. {
  2. $this->expectException(UnexpectedAlertOpenException::class);
  3.  
  4. $this->browse(function (Browser $browser) {
  5. $browser->loginToWave()
  6. ->goToSystemsEdit();
  7.  
  8. $browser->waitFor('@delete-systems-button')
  9. ->click('@delete-systems-button')
  10. ->assertDialogOpened('This will delete the system. Please seek advice before doing this. Continue?')
  11. ->dismissDialog()
  12. ->assertPathBeginsWith('systems/edit');
  13. });
  14. }
  15.  
  16. 1) TestsBrowserSystemsDeleteSystemTest::testSystemNotDeletedIfConfirmIsDismissed
  17. FacebookWebDriverExceptionUnexpectedAlertOpenException: unexpected alert open: {Alert text : This will delete the system. Please seek advice before doing this. Continue?}
  18. (Session info: chrome=71.0.3578.98)
  19. (Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.9.125-linuxkit x86_64)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement