yourng2794 / cryptoproj

0 stars 0 forks source link

selectors #2

Open cherrychoiCrypto opened 2 years ago

cherrychoiCrypto commented 2 years ago

https://github.com/yourng2794/cryptoproj/blob/acef2b41ed7cf9345c78207161decce2022ff11b/cypress/integration/test/crypto.js#L9

Any other way to store selectors like eg. div[data-test-id=xxx] in a better way so that you dont have to change the same selectors in different lines , if the selectors get updated?

yourng2794 commented 2 years ago

commit: b0256ca9bfcf7aab1bd1a2bef5c7f370121adf7f Enhance cypress/support/selectors.js to avoid use same code in different lines.