Skip to content

Latest commit

 

History

History
172 lines (101 loc) · 5.01 KB

CHANGELOG.md

File metadata and controls

172 lines (101 loc) · 5.01 KB

3.0.0 (2022-07-10)

New Features

2.3.20 (2022-06-19)

2.3.19 (2022-06-17)

2.3.18 (2022-06-17)

2.3.17 (2022-04-22)

2.3.17 (2022-04-14)

2.3.16 (2022-02-15)

2.3.15 (2022-01-20)

New Features

2.3.13 (2021-11-02)

  • updated resq to 1.10.2

2.3.12 (2021-10-23)

Other Changes
  • Reset global.isReactLoaded in component testing (#241) (ff34ad62)

2.3.11 (2021-07-02)

2.3.10 (2021-06-17)

  • added non essential folders to .npmignore to reduce the library size

2.3.8 (2021-06-09)

  • fixed getProps error message
  • Added shadowDOm example

2.3.7 (2021-05-08)

2.3.6 (2021-02-04)

2.3.5 (2021-02-01)

  • Updated Resq fetch mechanism. Refer: #94

2.3.4 (2021-01-22)

  • Handle type error of require.resolve being used in older version of node (#133) (81b5af4b)

2.3.3 (2021-01-19)

2.3.2 (2021-01-19)

2.3.1 (2021-01-17)

  • Error message updated

2.3.0 (2021-01-16)

  • Bug fix - #120
  • Added support for passing timeout as object literal for react commands - #119
  • Added support for fetch nthNode from RESQ nodes - #123

2.2.2 (2020-12-15)

2.2.1 (2020-11-19)

Bug Fixes
  • Use require.resolve to find resq (110af23f)

2.2.0 (2020-10-16)

  • 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 the cy.react or cy.getReact function:
cy.react('MyComponent', { props: { name: 'John' }, exact: true });

2.1.1 (2020-10-15)

  • resq upgraded to 1.9.1. This unblocks the tests in production version.

2.1.0 (2020-10-11)

  • bug fix for #48

  • bug fix for #42

  • retry cy.react and cy.getReact until node found (4bb3207c)

2.0.4 (2020-09-26)

  • 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);
}

2.0.3 (2020-08-27)

  • getIdentifierLogs not defined (046562cd)

2.0.2 (2020-08-18)

  • ES6 import and export changed to exports.

2.0.1 (2020-08-15)

  • react root selector configuration support added as a cypress env parameter
{
  "env": {
    "cypress-react-selector": {
      "root": "#root"
    }
  }
}
  • If the root found undefined, it will throw error messages and terminate the flow

2.0.0 (2020-08-15)

  • From version 2.0 cypress-react-selector will be using reactProps 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() and cy.getReact() queries will retry itself until the upcoming assertion passes/timeouts
  • If component not found, it will show helpful messages.