MDL-56630 behat: Click on link in specificed block/region

This commit is contained in:
Rajesh Taneja 2016-11-08 14:38:48 +08:00
parent 1fd6b25579
commit dc90838aaa
No known key found for this signature in database
GPG key ID: B363F7FB787F80E4
55 changed files with 216 additions and 183 deletions

View file

@ -90,7 +90,13 @@ class behat_workshopallocation_manual extends behat_base {
public function i_allocate_submissions_in_workshop_as($workshopname, TableNode $table) {
$this->find_link($workshopname)->click();
$this->find_link(get_string('allocate', 'workshop'))->click();
$this->execute('behat_general::i_click_on_in_the',
array(
get_string('allocate', 'workshop'),
'link',
'Administration',
'block'
));
$rows = $table->getRows();
$reviewer = $participant = null;
for ($i = 0; $i < count($rows[0]); $i++) {

View file

@ -96,7 +96,13 @@ class behat_mod_workshop extends behat_base {
$this->execute('behat_general::click_link', $workshopname);
$this->execute('behat_general::click_link', $editassessmentform);
$this->execute('behat_general::i_click_on_in_the',
array(
$editassessmentform,
'link',
'Administration',
'block'
));
$this->execute("behat_forms::i_set_the_following_fields_to_these_values", $table);