mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-06-28 23:49:34 +02:00
More versatile "press button/link, confirming dialog"
This commit is contained in:
parent
e55c6bb22a
commit
8211d3f5fc
|
@ -320,8 +320,10 @@ JS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Needs to be in single command to avoid "unexpected alert open" errors in Selenium.
|
* Needs to be in single command to avoid "unexpected alert open" errors in Selenium.
|
||||||
|
* Example1: I press the "Remove current combo" button, confirming the dialog
|
||||||
|
* Example2: I follow the "Remove current combo" link, confirming the dialog
|
||||||
*
|
*
|
||||||
* @Given /^I press the "([^"]*)" button, confirming the dialog$/
|
* @Given /^I (?:press|follow) the "([^"]*)" (?:button|link), confirming the dialog$/
|
||||||
*/
|
*/
|
||||||
public function stepIPressTheButtonConfirmingTheDialog($button)
|
public function stepIPressTheButtonConfirmingTheDialog($button)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user