ACS-8106: (a11y) Replace Material Tooltip with standard tooltip (#9894)

This commit is contained in:
Denys Vuika
2024-07-02 13:51:40 -04:00
committed by GitHub
parent 0c4259cddf
commit f3a94bdfa4
96 changed files with 254 additions and 561 deletions

View File

@@ -25,7 +25,7 @@
{{ 'NODE_SELECTOR.UPLOAD_FROM_DEVICE' | translate }}
<mat-icon *ngIf="hasUploadError()"
data-automation-id="adf-content-node-selector-disabled-tab-info-icon"
matTooltip="{{ getWarningMessage() | translate }}">info
title="{{ getWarningMessage() | translate }}">info
</mat-icon>
</ng-template>
</div>

View File

@@ -334,12 +334,12 @@ describe('ContentNodeSelectorComponent', () => {
fixture.detectChanges();
const infoMatIcon = getTabInfoButton();
const iconTooltipMessage = infoMatIcon.attributes['ng-reflect-message'];
const iconTooltipMessage = infoMatIcon.attributes['title'];
const expectedMessage = 'NODE_SELECTOR.UPLOAD_BUTTON_SEARCH_WARNING_MESSAGE';
expect(component.getWarningMessage()).toEqual(expectedMessage);
expect(iconTooltipMessage).toEqual(expectedMessage.substring(0, 30));
expect(iconTooltipMessage).toEqual(expectedMessage);
});
it('should not be able to show warning message if it is not in search mode', () => {
@@ -394,11 +394,11 @@ describe('ContentNodeSelectorComponent', () => {
fixture.detectChanges();
const infoMatIcon = getTabInfoButton();
const iconTooltipMessage = infoMatIcon.attributes['ng-reflect-message'];
const iconTooltipMessage = infoMatIcon.attributes['title'];
const expectedMessage = 'NODE_SELECTOR.UPLOAD_BUTTON_PERMISSION_WARNING_MESSAGE';
expect(component.getWarningMessage()).toEqual(expectedMessage);
expect(iconTooltipMessage).toEqual(expectedMessage.substring(0, 30));
expect(iconTooltipMessage).toEqual(expectedMessage);
});
it('should not be able to show warning message while loading documents', () => {