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

@ -87,7 +87,7 @@ Feature: Marking guides can be created and edited
And I press "Ok"
And I follow "Edit settings"
And I follow "Test assignment 1 name"
And I follow "View all submissions"
And I click on "View all submissions" "link" in the "Administration" "block"
# Checking that the user grade is correct.
Then I should see "80" in the "Student 1" "table_row"
And I log out

View file

@ -49,7 +49,13 @@ class behat_grading extends behat_base {
$this->execute('behat_general::click_link', $this->escape($activityname));
$this->execute('behat_general::click_link', get_string('gradingmanagement', 'grading'));
$this->execute('behat_general::i_click_on_in_the',
array(
get_string('gradingmanagement', 'grading'),
'link',
'Administration',
'block'
));
}
/**
@ -86,7 +92,13 @@ class behat_grading extends behat_base {
$this->execute('behat_general::click_link', $this->escape($activityname));
$this->execute('behat_general::click_link', $this->escape(get_string('viewgrading', 'assign')));
$this->execute('behat_general::i_click_on_in_the',
array(
get_string('viewgrading', 'mod_assign'),
'link',
'Administration',
'block'
));
$this->execute('behat_general::i_click_on_in_the',
array(
@ -157,7 +169,13 @@ class behat_grading extends behat_base {
$this->execute('behat_forms::press_button', 'Ok');
$this->execute('behat_general::i_click_on', array($this->escape(get_string('editsettings')), 'link'));
$this->execute('behat_forms::press_button', get_string('cancel'));
$this->execute('behat_general::i_click_on', array($this->escape(get_string('viewgrading', 'mod_assign')), 'link'));
$this->execute('behat_general::i_click_on_in_the',
array(
get_string('viewgrading', 'mod_assign'),
'link',
'Administration',
'block'
));
}
/**