MDL-69588 core: Activity navigation fixes

This commit is contained in:
Jun Pataleta 2021-08-26 09:58:15 +08:00
parent 34f3d43397
commit b36bdd18d8
3 changed files with 6 additions and 8 deletions

View file

@ -52,7 +52,7 @@ class behat_mod_workshop extends behat_base {
$xpath = "//*[@class='userplan']/descendant::div[./span[contains(.,$phaseliteral)]]";
$continue = $this->escape(get_string('continue'));
$this->execute("behat_navigation::go_to_breadcrumb_location", $workshopname);
$this->execute('behat_navigation::i_am_on_page_instance', [$workshopname, 'workshop activity']);
$this->execute('behat_general::i_click_on_in_the',
array('a.action-icon', "css_element", $this->escape($xpath), "xpath_element")
@ -116,7 +116,7 @@ class behat_mod_workshop extends behat_base {
$assess = $this->escape(get_string('assess', 'workshop'));
$saveandclose = $this->escape(get_string('saveandclose', 'workshop'));
$this->execute("behat_navigation::go_to_breadcrumb_location", $workshopname);
$this->execute('behat_navigation::i_am_on_page_instance', [$workshopname, 'workshop activity']);
$this->execute('behat_general::i_click_on_in_the',
array($assess, "button", $xpath, "xpath_element")