Closed ianaya89 closed 3 years ago
data-*
Introducing small improvements in selectors logic:
id
Add a label to settings page in order to inform users about this behaviour
Fix https://github.com/checkly/headless-recorder/issues/60
Please delete options that are not relevant.
New tests cases were created in attributes.spec.js
attributes.spec.js
npm run lint
npm run test
@ianaya89 I think @maxigimenez is better at reviewing this...I get lost here quite quickly.
Give precedence to
data-*
and trust in ID's uniquenessDescription
Introducing small improvements in selectors logic:
data-*
is set, it will take precedence from over any other selectordata-*
(and it was set) orid
, will generate a shorter output based only on those attributes (data-*
orid
)Add a label to settings page in order to inform users about this behaviour
Fix https://github.com/checkly/headless-recorder/issues/60
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
New tests cases were created in
attributes.spec.js
data-*
will be used even ifid
is presentid
selector will generate a shorter output based only onid
Checklist:
npm run lint
passes with no errors.npm run test
passes with no errors.