MDL-42287 behat: Use string from scorm content, instead of scorm structure
This commit is contained in:
committed by
Dan Poltawski
parent
32bf2cfc64
commit
e5eff0b626
@@ -117,6 +117,25 @@ class behat_general extends behat_base {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Switches to the specified iframe.
|
||||
*
|
||||
* @Given /^I switch to "(?P<iframe_name_string>(?:[^"]|\\")*)" iframe$/
|
||||
* @param string $iframename
|
||||
*/
|
||||
public function switch_to_iframe($iframename) {
|
||||
$this->getSession()->switchToIFrame($iframename);
|
||||
}
|
||||
|
||||
/**
|
||||
* Switches to the main Moodle frame.
|
||||
*
|
||||
* @Given /^I switch to the main frame$/
|
||||
*/
|
||||
public function switch_to_the_main_frame() {
|
||||
$this->getSession()->switchToIFrame();
|
||||
}
|
||||
|
||||
/**
|
||||
* Switches to the specified window. Useful when interacting with popup windows.
|
||||
*
|
||||
|
||||
@@ -35,4 +35,6 @@ Feature: Add scorm activity
|
||||
And I follow "Awesome SCORM package"
|
||||
And I should see "Normal"
|
||||
And I press "Enter"
|
||||
And I should see "Golf Explained"
|
||||
And I switch to "scorm_object" iframe
|
||||
And I switch to "contentFrame" iframe
|
||||
And I should see "Play of the game"
|
||||
|
||||
Reference in New Issue
Block a user