mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-56630 behat: Click on link in specificed block/region
This commit is contained in:
parent
1fd6b25579
commit
dc90838aaa
55 changed files with 216 additions and 183 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue