30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-05-29 04:30:46 +00:00

[tests] add accept popup when removing a weblink

This commit is contained in:
javier gomez 2016-02-01 13:37:11 +01:00
parent 74ce09dda3
commit a26ee4a552

View File

@ -107,6 +107,7 @@ class AdministratorWeblinksCest
$I->amGoingTo('Delete the just saved weblink'); $I->amGoingTo('Delete the just saved weblink');
$I->checkAllResults(); $I->checkAllResults();
$I->click(['xpath'=> '//div[@id="toolbar-delete"]/button']); $I->click(['xpath'=> '//div[@id="toolbar-delete"]/button']);
$I->acceptPopup();
$I->waitForText('Web Links','30',['css' => 'h1']); $I->waitForText('Web Links','30',['css' => 'h1']);
$I->expectTo('see a success message and the weblink removed from the list'); $I->expectTo('see a success message and the weblink removed from the list');
$I->see('1 web link successfully deleted.',['id' => 'system-message-container']); $I->see('1 web link successfully deleted.',['id' => 'system-message-container']);