mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Added missing behat step
This commit is contained in:
parent
9d73942bbd
commit
4be4861a45
@ -290,6 +290,17 @@ JS;
|
|||||||
$matchedEl->click();
|
$matchedEl->click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Needs to be in single command to avoid "unexpected alert open" errors in Selenium.
|
||||||
|
*
|
||||||
|
* @Given /^I press the "([^"]*)" button, confirming the dialog$/
|
||||||
|
*/
|
||||||
|
public function stepIPressTheButtonConfirmingTheDialog($button)
|
||||||
|
{
|
||||||
|
$this->stepIPressTheButton($button);
|
||||||
|
$this->iConfirmTheDialog();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Given /^I click "([^"]*)" in the "([^"]*)" element$/
|
* @Given /^I click "([^"]*)" in the "([^"]*)" element$/
|
||||||
*/
|
*/
|
||||||
|
@ -409,7 +409,7 @@ class FixtureContext extends BehatContext
|
|||||||
$type = trim($type);
|
$type = trim($type);
|
||||||
|
|
||||||
// Try direct mapping
|
// Try direct mapping
|
||||||
$class = str_replace(' ', '', ucfirst($type));
|
$class = str_replace(' ', '', ucwords($type));
|
||||||
if(class_exists($class) || !($class == 'DataObject' || is_subclass_of($class, 'DataObject'))) {
|
if(class_exists($class) || !($class == 'DataObject' || is_subclass_of($class, 'DataObject'))) {
|
||||||
return $class;
|
return $class;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user