mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
Adding "I follow the link "test", dismissing the dialog" step
This commit is contained in:
parent
10da00c796
commit
b789a3b67c
@ -569,6 +569,10 @@ It's based on the `vendor/bin/behat -di @cms` output.
|
|||||||
|
|
||||||
Given /^I type "([^"]*)" into the dialog$/
|
Given /^I type "([^"]*)" into the dialog$/
|
||||||
|
|
||||||
|
Given /^I (?:press|follow) the "([^"]*)" (?:button|link), confirming the dialog$/
|
||||||
|
|
||||||
|
Given /^I (?:press|follow) the "([^"]*)" (?:button|link), dismissing the dialog$/
|
||||||
|
|
||||||
Given /^I confirm the dialog$/
|
Given /^I confirm the dialog$/
|
||||||
|
|
||||||
Given /^I dismiss the dialog$/
|
Given /^I dismiss the dialog$/
|
||||||
|
@ -331,6 +331,18 @@ JS;
|
|||||||
$this->iConfirmTheDialog();
|
$this->iConfirmTheDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Needs to be in single command to avoid "unexpected alert open" errors in Selenium.
|
||||||
|
* Example: I follow the "Remove current combo" link, dismissing the dialog
|
||||||
|
*
|
||||||
|
* @Given /^I (?:press|follow) the "([^"]*)" (?:button|link), dismissing the dialog$/
|
||||||
|
*/
|
||||||
|
public function stepIPressTheButtonDismissingTheDialog($button)
|
||||||
|
{
|
||||||
|
$this->stepIPressTheButton($button);
|
||||||
|
$this->iDismissTheDialog();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Given /^I click "([^"]*)" in the "([^"]*)" element$/
|
* @Given /^I click "([^"]*)" in the "([^"]*)" element$/
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user