Added missing behat step

This commit is contained in:
Ingo Schommer 2013-10-07 00:19:45 +02:00
parent 9d73942bbd
commit 4be4861a45
2 changed files with 12 additions and 1 deletions

View File

@ -290,6 +290,17 @@ JS;
$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$/
*/

View File

@ -409,7 +409,7 @@ class FixtureContext extends BehatContext
$type = trim($type);
// Try direct mapping
$class = str_replace(' ', '', ucfirst($type));
$class = str_replace(' ', '', ucwords($type));
if(class_exists($class) || !($class == 'DataObject' || is_subclass_of($class, 'DataObject'))) {
return $class;
}