You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/behat/basic.feature
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,7 @@ Feature: Edit course plugin ID numbers
37
37
38
38
@javascript@_switch_iframe
39
39
Scenario: Test edit ID number report can be used to change plugin instance ID numbers
40
-
When I log in as "admin"
41
-
And I am on "Course 1" course homepage
40
+
When I am on the "Course 1""course" page logged in as "admin"
42
41
And I navigate to "Reports > ID numbers" in current page administration
43
42
And I follow "ID numbers"
44
43
Then I should see "Course 1"
@@ -47,14 +46,14 @@ Feature: Edit course plugin ID numbers
47
46
And I should see "Test quiz name 1"
48
47
And I should see "Test quiz name 2"
49
48
And I should see "Test quiz name 3"
50
-
And I set the field with xpath "//fieldset[@id='id_section2header']/div[@class='fcontainer clearfix']/div[2]/div[contains(@class,'felement')]/input[@type='text']" to "1"
51
-
And I set the field with xpath "//fieldset[@id='id_section3header']/div[@class='fcontainer clearfix']/div[2]/div[contains(@class,'felement')]/input[@type='text']" to "2"
49
+
And I set the field with xpath "//fieldset[@id='id_section2header']//div[contains(@class,'felement')]/input[@type='text']" to "1"
50
+
And I set the field with xpath "//fieldset[@id='id_section3header']//div[contains(@class,'felement')]/input[@type='text']" to "2"
52
51
And I press "Save changes"
53
52
Then I should see "Course 1"
54
53
And I should see "Activity view filter "
55
54
And I follow "Expand all"
56
55
And I should see "Test quiz name 1"
57
56
And I should see "Test quiz name 2"
58
57
And I should see "Test quiz name 3"
59
-
And the "value" attribute of "//fieldset[@id='id_section2header']/div[@class='fcontainer clearfix']/div[2]/div[contains(@class,'felement')]/input[@type='text']""xpath_element" should contain "1"
60
-
And the "value" attribute of "//fieldset[@id='id_section3header']/div[@class='fcontainer clearfix']/div[2]/div[contains(@class,'felement')]/input[@type='text']""xpath_element" should contain "2"
58
+
And the "value" attribute of "//fieldset[@id='id_section2header']//div[contains(@class,'felement')]/input[@type='text']""xpath_element" should contain "1"
59
+
And the "value" attribute of "//fieldset[@id='id_section3header']//div[contains(@class,'felement')]/input[@type='text']""xpath_element" should contain "2"
0 commit comments