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
Checks if an element has specific `CSS` properties. By default, values must match exactly. Only the `CSS` properties you specify are validated; other properties on the element are ignored.
507
+
508
+
##### Usage
509
+
510
+
```js
511
+
constelem=await$('#elem')
512
+
awaitexpect(elem).toHaveStyle({
513
+
'font-family':'Faktum',
514
+
'font-weight':'500',
515
+
'font-size':'12px',
516
+
})
517
+
```
518
+
504
519
### toHaveText
505
520
506
521
Checks if element has a specific text. Can also be called with an array as parameter in the case where the element can have different texts.
@@ -580,7 +595,7 @@ await expect(list).toHaveChildren() // the list has at least one item
580
595
awaitexpect(list).toHaveChildren({ gte:1 })
581
596
582
597
awaitexpect(list).toHaveChildren(3) // the list has 3 items
0 commit comments