QA: Cypress test refactoring
Adding here the feedback from MR !1025 (closed) for improvements on testing processes and data-test-id used for cypress.
1- Unification of variables testId, dataTestId and data-test-id, lockTestId
This is done mostly, now we generally use testId and data-test-id. This is because we use variables to reach the smaller components inside of specific element we want to click. Like for example buttons.
Additionally we can use cypress locators to make it simpler.
2- Clean up on test-id which are not in use.
Ex.
3- Minimize the use of labels on the data-test-id names or make them simplier:
4- Not use children as input for data test id-s:
data-test-id={
extended-icon-${children}}