fix(tests): refactored data test ids
This MR includes:
- remove the variable
testId
for the button component and instead addeddata-test-id
to each button with a unique name - remove the variable
data-testid
from Dropdown component as it was not in use - remove
testId={``${label.toLowerCase().split(' ').join('-')}-lock``}
from the code an instead added thetestId
to the toggle elements which where needed to be clicked in book & collection settings. - change name from 'testId' do 'data-test-id'.
- change of data-test-id names to not depend on component label, and instead used save-btn & remove-btn as described in the main issue
- updated cypress tests for the changed tests-ids so that those would not fail.