mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4958] [ADF-4959] Info Drawer - Buttons don't have role and accessible by keyboard alone (#5161)
* actions accessibility * lint * access setEditMode by keyboard * fix test * update action automation id reference * update element finder reference * update automation id reference
This commit is contained in:
committed by
Denys Vuika
parent
d7ab0417b8
commit
ee5c90871a
@@ -136,22 +136,22 @@ export class MetadataViewPage {
|
||||
}
|
||||
|
||||
async editPropertyIconIsDisplayed(propertyName: string) {
|
||||
const editPropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
const editPropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
await BrowserVisibility.waitUntilElementIsPresent(editPropertyIcon);
|
||||
}
|
||||
|
||||
async updatePropertyIconIsDisplayed(propertyName: string) {
|
||||
const updatePropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-update-' + propertyName + '"]'));
|
||||
const updatePropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-update-' + propertyName + '"]'));
|
||||
await BrowserVisibility.waitUntilElementIsVisible(updatePropertyIcon);
|
||||
}
|
||||
|
||||
async clickUpdatePropertyIcon(propertyName: string): Promise<void> {
|
||||
const updatePropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-update-' + propertyName + '"]'));
|
||||
const updatePropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-update-' + propertyName + '"]'));
|
||||
await BrowserActions.click(updatePropertyIcon);
|
||||
}
|
||||
|
||||
async clickClearPropertyIcon(propertyName: string): Promise<void> {
|
||||
const clearPropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-reset-' + propertyName + '"]'));
|
||||
const clearPropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-reset-' + propertyName + '"]'));
|
||||
await BrowserActions.click(clearPropertyIcon);
|
||||
}
|
||||
|
||||
@@ -183,17 +183,17 @@ export class MetadataViewPage {
|
||||
}
|
||||
|
||||
async clearPropertyIconIsDisplayed(propertyName: string): Promise<void> {
|
||||
const clearPropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-reset-' + propertyName + '"]'));
|
||||
const clearPropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-reset-' + propertyName + '"]'));
|
||||
await BrowserVisibility.waitUntilElementIsVisible(clearPropertyIcon);
|
||||
}
|
||||
|
||||
async clickEditPropertyIcons(propertyName: string): Promise<void> {
|
||||
const editPropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
const editPropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
await BrowserActions.click(editPropertyIcon);
|
||||
}
|
||||
|
||||
async getPropertyIconTooltip(propertyName: string): Promise<string> {
|
||||
const editPropertyIcon: ElementFinder = element(by.css('mat-icon[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
const editPropertyIcon: ElementFinder = element(by.css('button[data-automation-id="card-textitem-edit-icon-' + propertyName + '"]'));
|
||||
return await editPropertyIcon.getAttribute('title');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user