- updated resq to 1.10.2
- added non essential folders to .npmignore to reduce the library size
- fixed getProps error message
- Added shadowDOm example
- bug fix ($136)
- Updated Resq fetch mechanism. Refer: #94
- Bugfix - #123
- Bugfix -#128
- Error message updated
- Bug fix - #120
- Added support for passing
timeout
as object literal for react commands - #119 - Added support for fetch nthNode from RESQ nodes - #123
- Bug fix - #113
- Use require.resolve to find resq (110af23f)
- Added
exact
flag support. If you are in need of matching exactly every property and value in the object (or nested objects), you can pass the exact flag to thecy.react
orcy.getReact
function:
cy.react('MyComponent', { props: { name: 'John' }, exact: true });
resq
upgraded to1.9.1
. This unblocks the tests in production version.
- React logic updated with previous subject
if (subject) {
elements = window.resq.resq$$(component, subject[0]);
}
is now changed to -
if (subject) {
elements = window.resq.resq$$(component, subject);
}
- getIdentifierLogs not defined (046562cd)
- ES6
import
andexport
changed toexports.
react root
selector configuration support added as acypress env
parameter
{
"env": {
"cypress-react-selector": {
"root": "#root"
}
}
}
- If the
root
foundundefined
, it will throw error messages and terminate the flow
- From version 2.0
cypress-react-selector
will be usingreactProps
object
V1.x way of proving react properties for identification
cy.react('Product', { name: 'MacBook Pro' }, { orderCount: 2 });
in V2.x it will be:
cy.react('Product', {
props: { name: 'MacBook Pro' },
state: { orderCount: 2 },
});
cy.react()
andcy.getReact()
queries will retry itself until the upcoming assertion passes/timeouts- If component not found, it will show helpful messages.