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: README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,11 @@ Then, we can add our assertion to the chain.
38
38
-`await expect(selector).to.have.attribute('attributeName')` - Test whether [at least one] matching element has the given attribute
39
39
-`await expect(selector).to.have.attribute('attributeName', 'string')` - Test the attribute value of the selected element(s) against supplied string. Succeeds if at least one element matches exactly
40
40
-`await expect(selector).to.have.attribute('attributeName', /regex/)` - Test the attribute value of the selected element(s) against supplied regular expression. Succeeds if at least one element matches exactly
41
-
-`await expect(selector).to.have.count(number)` - Test how many elements exist in the DOM with the supplied selector
41
+
-`await expect(selector).to.have.count(n)` - Test that exactly `n` elements exist in the DOM with the supplied selector
42
+
-`await expect(selector).to.have.count.above(n)` - Test that more than `n` elements exist in the DOM with the supplied selector
43
+
-`await expect(selector).to.have.count.below(n)` - Test that less than `n` elements exist in the DOM with the supplied selector
44
+
-`await expect(selector).to.have.count.at.least(n)` - Test that at least `n` elements exist in the DOM with the supplied selector
45
+
-`await expect(selector).to.have.count.at.most(n)` - Test that at most `n` elements exist in the DOM with the supplied selector
42
46
-`await expect(selector).to.have.value('string')` - Test that [at least one] selected element has a value matching the given string
43
47
-`await expect(selector).to.have.value(/regex/)` - Test that [at least one] selected element has a value matching the given regular expression
44
48
-`await expect(selector).to.have.focus()` - (alias for `to.be.focused()`)
0 commit comments