Skip to content

fix(tests): refactored data test ids

Sidorela Uku requested to merge fix-1398-issue into develop

#1398 (closed)

This MR includes:

  • remove the variable testId for the button component and instead added data-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 the testId 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.
Edited by Sidorela Uku

Merge request reports