MDL-76120 behat: Swap click on select option to set field
Recent versions of Marionette do not like to click on the option element so we must always use the set field option.
This commit is contained in:
@@ -44,13 +44,11 @@ Feature: Navigate to different contexts in the content bank
|
||||
And I should see "santjordi.h5p"
|
||||
And I should not see "santjordi_rose.h5p"
|
||||
And I should not see "Dragon.h5p"
|
||||
And I click on "contextid" "select"
|
||||
And I click on "Cat 1" "option"
|
||||
And I set the field "contextid" to "Cat 1"
|
||||
Then I should not see "santjordi.h5p"
|
||||
And I should see "santjordi_rose.h5p"
|
||||
And I should not see "Dragon.h5p"
|
||||
And I click on "contextid" "select"
|
||||
And I click on "C0" "option"
|
||||
And I set the field "contextid" to "C0"
|
||||
And I should not see "santjordi.h5p"
|
||||
And I should not see "santjordi_rose.h5p"
|
||||
And I should see "Dragon.h5p"
|
||||
@@ -82,8 +80,7 @@ Feature: Navigate to different contexts in the content bank
|
||||
And I should not see "princess.h5p"
|
||||
And I should not see "santjordi.h5p"
|
||||
And I should not see "santjordi_rose.h5p"
|
||||
And I click on "contextid" "select"
|
||||
And I click on "C1" "option"
|
||||
And I set the field "contextid" to "C1"
|
||||
Then I should not see "Dragon.h5p"
|
||||
And I should see "princess.h5p"
|
||||
And I should not see "santjordi.h5p"
|
||||
@@ -102,7 +99,6 @@ Feature: Navigate to different contexts in the content bank
|
||||
And the "contextid" select box should not contain "Cat 2"
|
||||
And the "contextid" select box should not contain "C2"
|
||||
And I should see "Dragon.h5p"
|
||||
And I click on "contextid" "select"
|
||||
And I click on "Cat 1" "option"
|
||||
And I set the field "contextid" to "Cat 1"
|
||||
And I should not see "Dragon.h5p"
|
||||
And I should see "santjordi_rose.h5p"
|
||||
|
||||
@@ -81,8 +81,8 @@ Feature: Regrading quiz attempts using the Grades report
|
||||
And I follow "Edit question SA"
|
||||
And I set the field "id_fraction_1" to "50%"
|
||||
And I press "id_submitbutton"
|
||||
And I click on "v1" "option"
|
||||
And I click on "v2" "option"
|
||||
And I set the field "version" in the "TF" "list_item" to "v1"
|
||||
And I set the field "version" in the "SA" "list_item" to "v2 (latest)"
|
||||
And I follow "Attempts: 2"
|
||||
And I press "Dry run a full regrade"
|
||||
|
||||
@@ -128,8 +128,7 @@ Feature: Regrading quiz attempts using the Grades report
|
||||
And I set the field "Correct answer" to "False"
|
||||
And I press "id_submitbutton"
|
||||
And I navigate to "Questions" in current page administration
|
||||
And I click on "version" "select" in the "TF" "list_item"
|
||||
And I click on "v2 (latest)" "option"
|
||||
And I set the field "version" in the "TF" "list_item" to "v2 (latest)"
|
||||
And I navigate to "Results" in current page administration
|
||||
And I press "Dry run a full regrade"
|
||||
And I should see "Regrade completed"
|
||||
@@ -167,14 +166,13 @@ Feature: Regrading quiz attempts using the Grades report
|
||||
And I should see "v2"
|
||||
And I should see "v3 (latest)"
|
||||
# Set version that is going to be attempted to an older one.
|
||||
And I click on "v1" "option"
|
||||
And I set the field "version" in the "TF" "list_item" to "v1"
|
||||
And user "student3" has attempted "Quiz for testing regrading" with responses:
|
||||
| slot | response |
|
||||
| 1 | True |
|
||||
| 2 | toad |
|
||||
And I navigate to "Questions" in current page administration
|
||||
And I click on "version" "select" in the "TF" "list_item"
|
||||
And I click on "Always latest" "option"
|
||||
And I set the field "version" in the "TF" "list_item" to "Always latest"
|
||||
And I navigate to "Results" in current page administration
|
||||
And I press "Regrade all"
|
||||
And I should see "Finished regrading (1/1)"
|
||||
|
||||
@@ -28,8 +28,7 @@ Feature: An plugin column can be reordered and displayed in the question bank vi
|
||||
Scenario: Teacher can see proper view
|
||||
Given I am on the "Test quiz Q001" "quiz activity" page logged in as "teacher1"
|
||||
When I navigate to "Question bank" in current page administration
|
||||
And I click on "category" "select"
|
||||
And I click on "Question category 1" "option"
|
||||
And I set the field "category" to "Question category 1"
|
||||
And I should see "Test question to be seen"
|
||||
Then I should see "Teacher 1"
|
||||
|
||||
@@ -39,8 +38,7 @@ Feature: An plugin column can be reordered and displayed in the question bank vi
|
||||
And I drag "Created by (creator_name_column)" "text" and I drop it in "T (question_type_column)" "text"
|
||||
And I am on the "Test quiz Q001" "quiz activity" page logged in as "teacher1"
|
||||
And I navigate to "Question bank" in current page administration
|
||||
And I click on "category" "select"
|
||||
And I click on "Question category 1" "option"
|
||||
And I set the field "category" to "Question category 1"
|
||||
Then ".creatorname" "css_element" should appear before ".qtype" "css_element"
|
||||
|
||||
Scenario: Disabling and enabling column display is proper
|
||||
|
||||
@@ -164,7 +164,6 @@ Feature: A Teacher can comment in a question
|
||||
And I click "0" on the row on the comments column
|
||||
And I should see "Version 2"
|
||||
Then I should see "edited question"
|
||||
And I click on "question_version_dropdown" "select"
|
||||
And I should see "Version 1"
|
||||
And I click on "Version 1" "option"
|
||||
And I set the field "question_version_dropdown" to "Version 1"
|
||||
And I should see "Answer the first question"
|
||||
|
||||
@@ -24,18 +24,14 @@ Feature: Use the qbank base view to test the status change using
|
||||
And I navigate to "Question bank" in current page administration
|
||||
And I set the field "Select a category" to "Test questions"
|
||||
And I should see "Test questions"
|
||||
And I should see "Ready" in the "First question" "table_row"
|
||||
And I should see "Ready" in the "Second question" "table_row"
|
||||
And I click on "question_status_dropdown" "select" in the "First question" "table_row"
|
||||
And I should see "Draft"
|
||||
And I click on "Draft" "option"
|
||||
And the field "question_status_dropdown" in the "First question" "table_row" matches value "Ready"
|
||||
And the field "question_status_dropdown" in the "Second question" "table_row" matches value "Ready"
|
||||
And I set the field "question_status_dropdown" to "Draft"
|
||||
And I reload the page
|
||||
And I should see "Draft" in the "First question" "table_row"
|
||||
And I should see "Ready" in the "Second question" "table_row"
|
||||
And I click on "question_status_dropdown" "select" in the "Second question" "table_row"
|
||||
And I click on "Draft" "option"
|
||||
And I click on "question_status_dropdown" "select" in the "First question" "table_row"
|
||||
And I click on "Ready" "option"
|
||||
And the field "question_status_dropdown" in the "First question" "table_row" matches value "Draft"
|
||||
And the field "question_status_dropdown" in the "Second question" "table_row" matches value "Ready"
|
||||
And I set the field "question_status_dropdown" in the "Second question" "table_row" to "Draft"
|
||||
And I set the field "question_status_dropdown" in the "First question" "table_row" to "Ready"
|
||||
And I reload the page
|
||||
Then I should see "Ready" in the "First question" "table_row"
|
||||
And I should see "Draft" in the "Second question" "table_row"
|
||||
And the field "question_status_dropdown" in the "First question" "table_row" matches value "Ready"
|
||||
And the field "question_status_dropdown" in the "Second question" "table_row" matches value "Draft"
|
||||
|
||||
@@ -53,8 +53,7 @@ Feature: A Teacher can generate question instance reports
|
||||
Then "Course: Course 1" row "Total" column of "generaltable" table should contain "2"
|
||||
And "Course: Course 1" row "Visible" column of "generaltable" table should contain "1"
|
||||
And "Course: Course 1" row "Hidden" column of "generaltable" table should contain "1"
|
||||
And I click on "menuqtype" "select"
|
||||
And I click on "True/False" "option"
|
||||
And I set the field "menuqtype" to "True/False"
|
||||
And I press "Get the report"
|
||||
And "Course: Course 1" row "Total" column of "generaltable" table should contain "1"
|
||||
And "Course: Course 1" row "Visible" column of "generaltable" table should contain "0"
|
||||
|
||||
Reference in New Issue
Block a user