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

@ -101,7 +101,7 @@ Feature: Anonymous feedback
And I log in as "manager"
And I am on site homepage
And I navigate to "Site feedback" node in "Site pages"
And I follow "Show responses"
And I click on "Show responses" "link" in the "Administration" "block"
And I should not see "Username"
And I should see "Anonymous entries (2)"
And I follow "Response number: 1"
@ -166,7 +166,7 @@ Feature: Anonymous feedback
And I log in as "manager"
And I am on site homepage
And I navigate to "Site feedback" node in "Site pages"
And I follow "Show responses"
And I click on "Show responses" "link" in the "Administration" "block"
And I should see "Anonymous entries (2)"
And I follow "Response number: 1"
And I should see "Response number: 1 (Anonymous)"
@ -225,7 +225,7 @@ Feature: Anonymous feedback
And I should see "Do you like this course?"
And I press "Continue"
And I should not see "Answer the questions..."
And I follow "Show responses"
And I click on "Show responses" "link" in the "Administration" "block"
And I should not see "Username"
And I should see "Anonymous entries (2)"
And I follow "Response number: 1"

View file

@ -114,7 +114,7 @@ Feature: Mapping courses in a feedback
And I am on site homepage
And I navigate to "Course feedback" node in "Site pages"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "All courses" in the "#feedback_course_filter [data-fieldtype=autocomplete] .form-autocomplete-selection [role=listitem]" "css_element"
And I show chart data for the "multichoicerated" feedback
And I should see "1 (33.33 %)" in the "option a" "table_row"
@ -197,7 +197,7 @@ Feature: Mapping courses in a feedback
And I log in as "manager"
And I am on site homepage
And I navigate to "Course feedback" node in "Site pages"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "All courses" in the "#feedback_course_filter [data-fieldtype=autocomplete] .form-autocomplete-selection [role=listitem]" "css_element"
And I show chart data for the "multichoicerated" feedback
And I should see "0" in the "option a" "table_row"

View file

@ -139,7 +139,7 @@ Feature: Feedbacks in courses with groups
And I log in as "teacher"
And I follow "Course 1"
And I follow "Course feedback"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And the field "Separate groups" matches value "All participants"
And I show chart data for the "multichoice1" feedback
And I should see "2 (28.57 %)" in the "Yes of course" "table_row"
@ -249,7 +249,7 @@ Feature: Feedbacks in courses with groups
And I log in as "teacher"
And I follow "Course 1"
And I follow "Course anon feedback"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And the field "Separate groups" matches value "All participants"
And I show chart data for the "multichoice1" feedback
And I should see "2 (28.57 %)" in the "Yes of course" "table_row"

View file

@ -141,7 +141,7 @@ Feature: Testing multichoice questions in feedback
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "Submitted answers: 2"
And I should see "Questions: 3"
And I show chart data for the "multichoice1" feedback
@ -162,7 +162,7 @@ Feature: Testing multichoice questions in feedback
And I choose "Edit question" in the open action menu
And I set the field "Do not analyse empty submits" to "Yes"
And I press "Save changes to question"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I show chart data for the "multichoice1" feedback
And I should see "1 (100.00 %)" in the "option a" "table_row"
And I should not see "%" in the "option b" "table_row"
@ -285,7 +285,7 @@ Feature: Testing multichoice questions in feedback
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "Submitted answers: 2"
And I should see "Questions: 3"
And I show chart data for the "multichoice1" feedback
@ -306,7 +306,7 @@ Feature: Testing multichoice questions in feedback
And I choose "Edit question" in the open action menu
And I set the field "Do not analyse empty submits" to "Yes"
And I press "Save changes to question"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I show chart data for the "multichoice1" feedback
And I should see "1 (100.00 %)" in the "option a" "table_row"
And I should see "1 (100.00 %)" in the "option b" "table_row"
@ -408,7 +408,7 @@ Feature: Testing multichoice questions in feedback
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "Submitted answers: 2"
And I should see "Questions: 3"
And I show chart data for the "multichoice1" feedback
@ -429,7 +429,7 @@ Feature: Testing multichoice questions in feedback
And I choose "Edit question" in the open action menu
And I set the field "Do not analyse empty submits" to "Yes"
And I press "Save changes to question"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I show chart data for the "multichoice1" feedback
And I should see "1 (100.00 %)" in the "option a" "table_row"
And I should not see "%" in the "option b" "table_row"

View file

@ -96,7 +96,7 @@ Feature: Non anonymous feedback
And I log in as "manager"
And I am on site homepage
And I navigate to "Site feedback" node in "Site pages"
And I follow "Show responses"
And I click on "Show responses" "link" in the "Administration" "block"
And I should see "Username"
And I should see "Non anonymous entries (2)"
And I should not see "Anonymous entries"
@ -152,7 +152,7 @@ Feature: Non anonymous feedback
And I should see "Do you like this course?"
And I press "Continue"
And I should not see "Answer the questions..."
And I follow "Show responses"
And I click on "Show responses" "link" in the "Administration" "block"
And I should see "Non anonymous entries (2)"
And I should not see "Anonymous"
And I click on "," "link" in the "Username 1" "table_row"

View file

@ -99,14 +99,14 @@ Feature: Test creating different types of feedback questions for anonymous feedb
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "Submitted answers: 2"
And I should see "Questions: 8"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "C1" in the "(info)" "table"
And I should see "my long answer" in the "(longertext)" "table"
And I should see "lots of feedbacks" in the "(longertext)" "table"

View file

@ -103,14 +103,14 @@ Feature: Test creating different types of feedback questions for non-anonymous f
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "Submitted answers: 2"
And I should see "Questions: 9"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Learning experience"
And I follow "Analysis"
And I click on "Analysis" "link" in the "Administration" "block"
And I should see "C1" in the "(info)" "table"
And I should see "my long answer" in the "(longertext)" "table"
And I should see "lots of feedbacks" in the "(longertext)" "table"

View file

@ -66,7 +66,7 @@ Feature: Show users who have not responded to the feedback survey
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Frogs"
And I follow "Show non-respondents"
And I click on "Show non-respondents" "link" in the "Administration" "block"
# Should only show student 2; not student 1 (they did it) or 3 (not in grouping).
Then I should see "Student 2"