mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-21083] Fix e2e Content: Metadata - C280560 - fix slide toggle click, in v15 toggle is handled with a button instead of input
This commit is contained in:
committed by
VitoAlbano
parent
3e553592e9
commit
616eae02df
@@ -30,9 +30,9 @@ export class TogglePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async disableToggle(toggle: ElementFinder): Promise<void> {
|
async disableToggle(toggle: ElementFinder): Promise<void> {
|
||||||
const check = await BrowserActions.getAttribute(toggle, 'class');
|
const slideToggle = await BrowserActions.getAttribute(toggle, 'class');
|
||||||
if (check.indexOf(materialLocators.Checked.root) >= 0) {
|
if (slideToggle.indexOf(materialLocators.Slide.toggle.checked) >= 0) {
|
||||||
const elem = toggle.$$('input').first();
|
const elem = toggle.$$('button').first();
|
||||||
await BrowserActions.clickScript(elem);
|
await BrowserActions.clickScript(elem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user