Commit c79d58a5 authored by Andrew Nicols's avatar Andrew Nicols Committed by Amaia
Browse files

MDL-71209 behat: Fix behat for new changes


Co-authored-by: ilya's avatarIlya Tregubov <ilya@moodle.com>
parent ef745009
......@@ -24,7 +24,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
And I add a "Text input" field to "Test database name" database and I fill the form with:
| Field name | Test field name |
| Field description | Test field description |
And I follow "Templates"
And I click on "Templates" "link" in the "region-main" "region"
And I wait until the page is ready
And I log out
And I log in as "student1"
......@@ -47,7 +47,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
| Schema | User data | 1 |
| Schema | - | 1 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should see "Student entry"
@javascript
......@@ -59,7 +59,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
| Schema | User data | 1 |
| Schema | - | 0 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should not see "Student entry"
@javascript
......@@ -71,7 +71,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
| Schema | User data | 0 |
| Schema | - | 0 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should not see "Student entry"
@javascript
......@@ -83,7 +83,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
| Schema | - | 1 |
| Schema | User data | 0 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should not see "Student entry"
@javascript
......@@ -91,7 +91,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
And I restore "test_backup.mbz" backup into a new course using this options:
| Settings | Include enrolled users | 0 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should not see "Student entry"
@javascript
......@@ -108,7 +108,7 @@ Feature: Restore Moodle 2 course backups with different user data settings
| Schema | User data | 1 |
| Schema | - | 1 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should see "Student entry"
@javascript
......@@ -121,5 +121,5 @@ Feature: Restore Moodle 2 course backups with different user data settings
When I restore "test_backup.mbz" backup into a new course using this options:
| Settings | Include enrolled users | 0 |
Then I should see "Test database name"
When I follow "Test database name"
When I click on "Test database name" "link" in the "region-main" "region"
Then I should not see "Student entry"
......@@ -29,8 +29,7 @@ Feature: Allow to mark course as completed without cron for activity completion
And I expand all fieldsets
And I set the field "Enable completion tracking" to "Yes"
And I click on "Save and display" "button"
And I follow "Test assignment name"
And I navigate to "Edit settings" in current page administration
And I am on the "Test assignment name" "assign activity editing" page
And I follow "Expand all"
And I set the field "Completion tracking" to "Show activity as complete when conditions are met"
And I set the field "completionusegrade" to "1"
......@@ -45,10 +44,7 @@ Feature: Allow to mark course as completed without cron for activity completion
@javascript
Scenario: Update course completion when student marks activity as complete
Given I log in as "teacher1"
And I am on "Completion course" course homepage
And I follow "Test assignment name"
And I navigate to "Edit settings" in current page administration
Given I am on the "Test assignment name" "assign activity editing" page logged in as teacher1
And I follow "Expand all"
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
And I press "Save and return to course"
......@@ -64,9 +60,7 @@ Feature: Allow to mark course as completed without cron for activity completion
@javascript
Scenario: Update course completion when teacher grades a single assignment
Given I log in as "teacher1"
And I am on "Completion course" course homepage
And I follow "Test assignment name"
Given I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
......@@ -79,16 +73,13 @@ Feature: Allow to mark course as completed without cron for activity completion
@javascript
Scenario: Update course completion with multiple activity criteria
Given I log in as "admin"
And the following "activity" exists:
Given the following "activity" exists:
| activity | assign |
| course | CC1 |
| name | Test assignment name2 |
| idnumber | assign2 |
| description | Test assignment description |
And I am on "Completion course" course homepage
And I follow "Test assignment name2"
And I navigate to "Edit settings" in current page administration
And I am on the "Test assignment name2" "assign activity editing" page logged in as admin
And I follow "Expand all"
And I set the field "Completion tracking" to "Show activity as complete when conditions are met"
And I set the field "completionusegrade" to "1"
......@@ -98,8 +89,7 @@ Feature: Allow to mark course as completed without cron for activity completion
And I set the field "Assignment - Test assignment name" to "1"
And I set the field "Assignment - Test assignment name2" to "1"
And I press "Save changes"
And I am on "Completion course" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
......@@ -110,9 +100,7 @@ Feature: Allow to mark course as completed without cron for activity completion
And I am on "Completion course" course homepage
And I should see "Status: In progress"
And I log out
When I log in as "teacher1"
And I am on "Completion course" course homepage
And I follow "Test assignment name2"
And I am on the "Test assignment name2" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
......
......@@ -46,7 +46,7 @@ Feature: Restrict activity availability through grade conditions
Then I should see "Not available unless: You achieve a required score in Grade assignment"
And "Test page name" activity should be dimmed
And "Test page name" "link" should not exist
And I follow "Grade assignment"
And I am on the "Grade assignment" "assign activity" page
And I press "Add submission"
And I set the following fields to these values:
| Online text | I'm the student submission |
......
......@@ -47,7 +47,7 @@ class behat_grading extends behat_base {
*/
public function i_go_to_advanced_grading_page($activityname) {
$this->execute('behat_general::click_link', $this->escape($activityname));
$this->execute("behat_general::i_click_on_in_the", [$this->escape($activityname), 'link', 'page', 'region']);
$this->execute('behat_navigation::i_navigate_to_in_current_page_administration',
get_string('gradingmanagement', 'grading'));
......@@ -85,7 +85,7 @@ class behat_grading extends behat_base {
// Step to access the user grade page from the grading page.
$gradetext = get_string('gradeverb');
$this->execute('behat_general::click_link', $this->escape($activityname));
$this->execute("behat_general::i_click_on_in_the", [$this->escape($activityname), 'link', 'page', 'region']);
$this->execute('behat_navigation::i_navigate_to_in_current_page_administration',
get_string('viewgrading', 'mod_assign'));
......
......@@ -78,7 +78,7 @@ Feature: Assign reset
And I press "Reset course"
And I press "Continue"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I click on "Test assignment name" "link" in the "region-main" "region"
And I navigate to "User overrides" in current page administration
Then I should not see "Sam1 Student1"
......@@ -102,8 +102,7 @@ Feature: Assign reset
| Delete all group overrides | 1 |
And I press "Reset course"
And I press "Continue"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page
And I navigate to "Group overrides" in current page administration
Then I should not see "Group 1"
......@@ -113,7 +112,7 @@ Feature: Assign reset
And I set the following fields to these values:
| blindmarking | 1 |
And I press "Save"
When I follow "Test assignment name"
When I am on the "Test assignment name" Activity page
And I navigate to "View all submissions" in current page administration
And I select "Reveal student identities" from the "Grading action" singleselect
And I press "Continue"
......@@ -124,7 +123,6 @@ Feature: Assign reset
| Delete all submissions | 1 |
And I press "Reset course"
And I press "Continue"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page
And I navigate to "View all submissions" in current page administration
Then I should not see "Sam1 Student1"
......@@ -84,14 +84,10 @@ Feature: Assign group override
And I press "Save"
And I should see "Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student2
Then the activity date in "Test assignment name" should contain "Due: Saturday, 1 January 2000, 8:00"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student1
And the activity date in "Test assignment name" should contain "Due: Wednesday, 1 January 2020, 8:00"
Scenario: Allow a group to have a different cut off date
......@@ -110,14 +106,10 @@ Feature: Assign group override
And I press "Save"
And I should see "Tuesday, 1 January 2030, 8:00"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student2
Then I should not see "You have not made a submission yet."
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student1
And I should see "You have not made a submission yet."
Scenario: Allow a group to have a different start date
......@@ -136,15 +128,11 @@ Feature: Assign group override
And I press "Save"
And I should see "Thursday, 1 January 2015, 8:00"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student2
Then the activity date in "Test assignment name" should contain "Opens: Tuesday, 1 January 2030, 8:00"
And I should not see "Add submission"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student1
And I should not see "Tuesday, 1 January 2030, 8:00"
@javascript
......@@ -163,7 +151,7 @@ Feature: Assign group override
| Allow submissions from | ##1 January 2030 08:00## |
And I press "Save"
And I should see "Tuesday, 1 January 2030, 8:00"
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page
And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
......@@ -172,19 +160,13 @@ Feature: Assign group override
And I press "Save"
And I should see "Wednesday, 1 January 2031, 8:00"
And I log out
Then I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student1
And the activity date in "Test assignment name" should contain "Opens: Wednesday, 1 January 2031, 8:00"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student2
And the activity date in "Test assignment name" should contain "Opens: Sunday, 1 January 2040, 8:00"
And I log out
And I log in as "student3"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student3
And the activity date in "Test assignment name" should contain "Opens: Tuesday, 1 January 2030, 8:00"
Scenario: Override a group when teacher is in no group, and does not have accessallgroups permission, and the activity's group mode is "separate groups"
......
......@@ -76,14 +76,10 @@ Feature: Assign user override
And I press "Save"
Then I should see "Wednesday, 1 January 2020, 8:00"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student2
And the activity date in "Test assignment name" should contain "Due: Saturday, 1 January 2000, 8:00"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student1
And the activity date in "Test assignment name" should contain "Due: Wednesday, 1 January 2020, 8:00"
@javascript
......@@ -103,14 +99,10 @@ Feature: Assign user override
And I press "Save"
And I should see "Tuesday, 1 January 2030, 8:00"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student2
Then I should not see "You have not made a submission yet."
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page logged in as student1
And I should see "You have not made a submission yet."
@javascript
......@@ -132,12 +124,12 @@ Feature: Assign user override
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I click on "Test assignment name" "link" in the "region-main" "region"
Then the activity date in "Test assignment name" should contain "Opens: Tuesday, 1 January 2030, 8:00"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I click on "Test assignment name" "link" in the "region-main" "region"
And I should not see "1 January 2030, 8:00"
Scenario: Override a user when teacher is in no group, and does not have accessallgroups permission, and the activity's group mode is "separate groups"
......
......@@ -39,8 +39,7 @@ Feature: Group assignment submissions
And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exist
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist
And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist
And I follow "Test assignment name"
And I navigate to "Edit settings" in current page administration
And I am on the "Test assignment name" "assign activity editing" page
And I set the following fields to these values:
| Group mode | Separate groups |
And I press "Save and return to course"
......@@ -52,8 +51,7 @@ Feature: Group assignment submissions
| user | group |
| student0 | G1 |
| student1 | G1 |
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
And I set the field "Separate groups" to "Group 1"
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist
......@@ -176,7 +174,7 @@ Feature: Group assignment submissions
| Allow another attempt | 1 |
And I press "Save changes"
When I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
......
......@@ -76,8 +76,7 @@ Feature: In an assignment, students can add and edit text online
| Online text | text submission |
# Wait for the draft auto save.
And I wait "2" seconds
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" Activity page
When I press "Add submission"
# Confirm draft was restored.
Then I should see "text submission" in the "#id_onlinetext_editoreditable" "css_element"
......@@ -79,25 +79,19 @@ Feature: In an assignment, teachers grade multiple students on one page
| assignsubmission_file_enabled | 0 |
| M8d skillZ! | 1 |
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as student1
And I press "Add submission"
And I set the following fields to these values:
| Online text | I'm the student1 submission |
And I press "Save changes"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as student2
When I press "Add submission"
And I set the following fields to these values:
| Online text | I'm the student2 submission |
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
......@@ -114,27 +108,21 @@ Feature: In an assignment, teachers grade multiple students on one page
And I should see "The grade changes were saved"
And I press "Continue"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should see "I'm the teacher first feedback"
And I should see "60.0"
And I follow "Grades" in the user menu
And I click on "Course 1" "link" in the "region-main" "region"
And I should see "1337"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as student2
And I should not see "I'm the teacher first feedback"
And I should not see "60.0"
And I follow "Grades" in the user menu
And I click on "Course 1" "link" in the "region-main" "region"
And I should not see "1337"
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I click on "Hide User picture" "link"
And I click on "Hide Full name" "link"
......@@ -153,18 +141,14 @@ Feature: In an assignment, teachers grade multiple students on one page
And I should see "The grade changes were saved"
And I press "Continue"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should see "I'm the teacher first feedback"
And I should see "60.0"
And I follow "Grades" in the user menu
And I click on "Course 1" "link" in the "region-main" "region"
And I should see "1337"
And I log out
And I log in as "student2"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as student2
And I should not see "I'm the teacher first feedback"
And I should not see "60.0"
And I follow "Grades" in the user menu
......
......@@ -36,7 +36,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
And I follow "Test assignment name"
And I navigate to "View all submissions" in current page administration
And "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
Scenario: Update the max grade for an assignment without rescaling existing grades
Given I navigate to "Edit settings" in current page administration
......
......@@ -101,7 +101,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
@javascript
Scenario: Submissions table visible with overrides and blind marking
When I follow "Test assignment name"
When I am on the "Test assignment name" "assign activity" page
And I navigate to "User overrides" in current page administration
And I press "Add user override"
And I set the following fields to these values:
......@@ -109,6 +109,6 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
| Due date | ##2030-01-01 08:00## |
And I press "Save"
And I should see "Tuesday, 1 January 2030, 8:00"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
And I should see "In review" in the "I'm the student's first submission" "table_row"
......@@ -40,7 +40,7 @@ Feature: In an assignment, students can comment in their submissions
And I follow "Save comment"
And I should see "Second student comment"
And I should not see "First student comment"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I click on ".comment-link" "css_element"
And I should see "Second student comment"
And I should not see "First student comment"
......
......@@ -15,13 +15,13 @@ Feature: In a book, create chapters and sub chapters
| user | course | role |
| teacher1 | C1 | editingteacher |
And the following "activities" exist:
| activity | name | intro | course | idnumber | section |
| book | Test book | A book about dreams! | C1 | book1 | 1 |
| activity | name | intro | course | section |
| book | Test book | A book about dreams! | C1 | 1 |
And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
Scenario: Create chapters and sub chapters and navigate between them
Given I follow "Test book"
Given I am on the "Test book" Activity page
And I should see "Add new chapter"
And I set the following fields to these values:
| Chapter title | Dummy first chapter |
......@@ -51,7 +51,7 @@ Feature: In a book, create chapters and sub chapters
And I should not see "Next" in the ".book_content" "css_element"
And I click on "Exit book" "link"
And I should see "Test book" in the "Topic 1" "section"
And I follow "Test book"
And I click on "Test book" "link" in the "Topic 1" "section"
And I should not see "Previous" in the ".book_content" "css_element"
And I should see "1. Dummy first chapter" in the "strong" "css_element"
When I click on "Next" "link"
......@@ -62,7 +62,7 @@ Feature: In a book, create chapters and sub chapters
And I should see "1. Dummy first chapter" in the "strong" "css_element"
Scenario: Change editing mode for an individual chapter
Given I follow "Test book"
Given I am on the "Test book" Activity page
And I should see "Add new chapter"
And I set the following fields to these values:
| Chapter title | Dummy first chapter |
......
......@@ -31,20 +31,17 @@ Feature: View activity completion information in the chat activity
And the following "activity" exists:
| activity | chat |
| course | C1 |
| idnumber | mh1 |
| name | Music history |
| section | 1 |
| completion | 2 |
| completionview | 1 |
And I am on "Course 1" course homepage
# Teacher view.
And I follow "Music history"
And I am on the "Music history" Activity page
And "Music history" should have the "View" completion condition
And I log out
# Student view.
When I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Music history"
And I am on the "Music history" Activity page logged in as student1
Then the "View" completion condition of "Music history" is displayed as "done"
@javascript
......@@ -53,7 +50,6 @@ Feature: View activity completion information in the chat activity
And the following "activity" exists:
| activity | chat |
| course | C1 |
| idnumber | mh1 |
| name | Music history |
| section | 1 |
| completion | 1 |
......@@ -62,9 +58,7 @@ Feature: View activity completion information in the chat activity
And the manual completion button for "Music history" should be disabled
And I log out
# Student view.
When I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Music history"
And I am on the "Music history" Activity page logged in as student1
Then the manual completion button of "Music history" is displayed as "Mark as done"
And I toggle the manual completion state of "Music history"
And the manual completion button of "Music history" is displayed as "Done"
......@@ -26,9 +26,7 @@ Feature: Non anonymous feedback
| activity | name | course | idnumber | anonymous | publish_stats | section |
| feedback | Site feedback | Acceptance test site | feedback0 | 2 | 1 | 1 |
| feedback | Course feedback | C1 | feedback1 | 2 | 1 | 0 |
When I log in as "manager"
And I am on site homepage
And I follow "Site feedback"
When I am on the "Site feedback" "feedback activity" page logged in as manager
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
And I add a "Multiple choice" question to the feedback with:
| Question | Do you like our site? |
......@@ -39,16 +37,14 @@ Feature: Non anonymous feedback
And I log out
Scenario: Guests can see non anonymous feedback on front page but can not complete
When I follow "Site feedback"
When I am on the "Site feedback" "feedback activity" page
Then I should not see "Answer the questions"
And I follow "Preview"
And I should see "Do you like our site?"
And I press "Continue"
Scenario: Complete non anonymous feedback on the front page as an authenticated user
And I log in as "user1"
And I am on site homepage
And I follow "Site feedback"
When I am on the "Site feedback" "feedback activity" page logged in as user1
And I follow "Preview"
And I should see "Do you like our site?"
And I press "Continue"
......@@ -67,18 +63,14 @@ Feature: Non anonymous feedback
| capability | permission |
| mod/feedback:viewanalysepage | Allow |
And I log out
And I log in as "user1"
And I am on site homepage
When I follow "Site feedback"
When I am on the "Site feedback" "feedback activity" page logged in as user1
And I follow "Answer the questions"
And I should see "Do you like our site?"
And I set the following fields to these values: