docs: import jestExpect

This commit is contained in:
Yaroslav Serhieiev
2023-10-22 18:27:40 +03:00
committed by GitHub
parent dc8451bfd4
commit 76a11ea7a0
+4
View File
@@ -317,6 +317,10 @@ If the value for a given attribute is null or cannot be otherwise computed, the
If the query matches multiple elements, the attributes of all matched elements is returned as an array of objects under the `elements` key.
```js
// import jestExpect from 'expect';
const jestExpect = require('expect').default;
// ...
const attributes = await element(by.text('Tap Me')).getAttributes();
jestExpect(attributes.text).toBe('Tap Me');