-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgr/dashboard: replace E2E test
moveClick
with clickCheckbox
Ceph Dashboard replaces the original checkbox with a fancy replacement using the pseudo selector "::before" inside the <label> tag. When the fancy replacement checkbox is clicked, it actually triggers a click on the label of the checkbox. `clickCheckbox` does the same. Removed `moveClick` as it was used to perform an action that the user would not be able to perform, namely clicking on the checkbox instead of the checkboxes' label. It was also used for cases where it was not necessary to be used for, hence the replacement `clickCheckbox` has been introduced. It checks if the argument passed to it is of type `checkbox` or `label`. If it is of type `label`, the label will be clicked. If it is of type `checkbox`, the corresponding `label` is determined and clicked. This replaces the old implementation with a solution that has an easy to understand purpose. It also prevents every false application. This method is designed to be used on all checkboxes of Ceph Dashboard. Fixes: https://tracker.ceph.com/issues/40693 Signed-off-by: Patrick Seidensal <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters