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/features/element.feature
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Feature: Check that ElementTrait works
22
22
"""
23
23
24
24
@trait:ElementTrait
25
-
Scenario:Assert that an element with selector and attribute with a value exists.
25
+
Scenario:Negative assertion for "Then I should see the :selector element with the :attribute attribute set to :value" fails as expected when the attribute is not found
26
26
Given some behat configuration
27
27
And scenario steps:
28
28
"""
@@ -37,7 +37,7 @@ Feature: Check that ElementTrait works
37
37
"""
38
38
39
39
@trait:ElementTrait
40
-
Scenario:Assert that an element with selector and attribute with a value exists.
40
+
Scenario:Negative assertion for "Then I should see the :selector element with the :attribute attribute set to :value" fails as expected when the attribute value does not match
41
41
Given some behat configuration
42
42
And scenario steps:
43
43
"""
@@ -51,18 +51,18 @@ Feature: Check that ElementTrait works
51
51
The "dir" attribute was found on the element "html", but does not contain a value "not-match-value".
52
52
"""
53
53
54
-
Scenario: Assert step definition "I( should) see the :selector element with a(n) :attribute attribute containing :value" works as expected
54
+
Scenario: Assert step definition "I( should) see the :selector element with a(n) :attribute attribute containing :value" works as expected with a specific value
55
55
Given I am an anonymous user
56
56
When I visit "/"
57
57
Then I should see the "html" element with a "dir" attribute containing "ltr"
58
58
59
-
Scenario: Assert step definition "I( should) see the :selector element with a(n) :attribute attribute containing :value" works as expected
59
+
Scenario: Assert step definition "I( should) see the :selector element with a(n) :attribute attribute containing :value" works as expected with a wildcard
60
60
Given I am an anonymous user
61
61
When I visit "/"
62
62
Then I should see the "html" element with a "dir" attribute containing "lt*"
63
63
64
64
@trait:ElementTrait
65
-
Scenario:Assert that an element with selector and attribute with avalue exists.
65
+
Scenario:Negative assertion for "Then I should see the :selector element with a(n) :attribute attribute containing :value" fails as expected when the attribute is not found
66
66
Given some behat configuration
67
67
And scenario steps:
68
68
"""
@@ -77,7 +77,7 @@ Feature: Check that ElementTrait works
77
77
"""
78
78
79
79
@trait:ElementTrait
80
-
Scenario:Assert that an element with selector and attribute with a value exists.
80
+
Scenario:Negative assertion for "Then I should see the :selector element with a(n) :attribute attribute containing :value" fails as expected when the attribute value does not match
81
81
Given some behat configuration
82
82
And scenario steps:
83
83
"""
@@ -92,7 +92,7 @@ Feature: Check that ElementTrait works
92
92
"""
93
93
94
94
@trait:ElementTrait
95
-
Scenario:Assert that an element with selector and attribute with a value exists.
95
+
Scenario:Negative assertion for "Then I should see the :selector element with a(n) :attribute attribute containing :value" fails as expected when the attribute value does not match; alternative step definition
96
96
Given some behat configuration
97
97
And scenario steps:
98
98
"""
@@ -106,18 +106,18 @@ Feature: Check that ElementTrait works
106
106
No element with "dir" attribute matching the pattern "not-match-value" found.
107
107
"""
108
108
109
-
Scenario: Assert that an element with selector contains text.
109
+
Scenario: Assert that an element with selector contains text using css.
110
110
Given I am an anonymous user
111
111
When I visit "/"
112
112
Then I should see an element ".site-branding__name" using "css" contains "Drush Site-Install" text
113
113
114
-
Scenario: Assert that an element with selector contains text.
114
+
Scenario: Assert that an element with selector contains text using xpath.
115
115
Given I am an anonymous user
116
116
When I visit "/"
117
117
Then I should see an element "//div[@class='site-branding__name']" using "xpath" contains "Drush Site-Install" text
118
118
119
119
@trait:ElementTrait
120
-
Scenario:Assert that an element with selector contains text.
120
+
Scenario:Negative assertion for "Then I should see an element :selector using :selector_type contains :text text" fails as expected when the selector type is invalid
121
121
Given some behat configuration
122
122
And scenario steps:
123
123
"""
@@ -132,7 +132,7 @@ Feature: Check that ElementTrait works
132
132
"""
133
133
134
134
@trait:ElementTrait
135
-
Scenario:Assert that an element with selector contains text.
135
+
Scenario:Negative assertion for "Then I should see an element :selector using :selector_type contains :text text" fails as expected when the selector is not found
136
136
Given some behat configuration
137
137
And scenario steps:
138
138
"""
@@ -147,7 +147,7 @@ Feature: Check that ElementTrait works
147
147
"""
148
148
149
149
@trait:ElementTrait
150
-
Scenario:Assert that an element with selector contains text.
150
+
Scenario:Negative assertion for "Then I should see an element :selector using :selector_type contains :text text" fails as expected when the text is not found
Copy file name to clipboardExpand all lines: tests/behat/features/field.feature
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -60,14 +60,14 @@ Feature: Check that FieldTrait works
60
60
Then color field "#edit-color-input" value is "#ffffff"
61
61
62
62
@api@javascript
63
-
Scenario: Assert fills in form color field with specified id|name|label|value.
63
+
Scenario: Assert fills in form color field with specified id|name|label|value using an alternate step definition.
64
64
Given I visit "/sites/default/files/relative.html"
65
65
Then color field "#edit-color-input" value is "#000000"
66
66
And I fill color in "#ffffff" for "#edit-color-input"
67
67
Then color field "#edit-color-input" value is "#ffffff"
68
68
69
69
@trait:FieldTrait
70
-
Scenario: Assert that field exists on the page using id,name,label or value.
70
+
Scenario: Assert that negative assertion for "I see field :field" fails with an error
71
71
Given some behat configuration
72
72
And scenario steps:
73
73
"""
@@ -81,7 +81,7 @@ Feature: Check that FieldTrait works
81
81
"""
82
82
83
83
@trait:FieldTrait
84
-
Scenario: Assert that field does not exist on the page using id,name,label or value.
84
+
Scenario: Assert that negative assertion for "I don't see field :field" fails with an error
85
85
Given some behat configuration
86
86
And scenario steps:
87
87
"""
@@ -95,7 +95,7 @@ Feature: Check that FieldTrait works
95
95
"""
96
96
97
97
@trait:FieldTrait
98
-
Scenario: Assert that field does not exist on the page using id,name,label or value.
98
+
Scenario: Assert that field does not exist on the page using id,name,label or value.
99
99
Given some behat configuration
100
100
And scenario steps:
101
101
"""
@@ -123,7 +123,7 @@ Feature: Check that FieldTrait works
123
123
"""
124
124
125
125
@trait:FieldTrait
126
-
Scenario: Assert whether the field has a state.
126
+
Scenario: Assert that negative assertion for "field :field1 is :state on the page" fails with an error
127
127
Given some behat configuration
128
128
And scenario steps:
129
129
"""
@@ -137,7 +137,7 @@ Feature: Check that FieldTrait works
137
137
"""
138
138
139
139
@trait:FieldTrait
140
-
Scenario: Assert whether the field exists on the page and has a state.
140
+
Scenario: Assert that negative assertion for "field :field should be :presence on the page and have state :state" fails with an error for existing field
141
141
Given some behat configuration
142
142
And scenario steps:
143
143
"""
@@ -151,7 +151,7 @@ Feature: Check that FieldTrait works
151
151
"""
152
152
153
153
@trait:FieldTrait
154
-
Scenario: Assert whether the field exists on the page and has a state.
154
+
Scenario: Assert that negative assertion for "field :field should be :presence on the page and have state :state" fails with an error for non-existing field
0 commit comments