ACS-3545 a 11 y aca metadata sidebar (#7923)

* ACS-3545 Fixed accessibility issues for metadata sidebar
This commit is contained in:
AleksanderSklorz
2022-11-02 21:40:14 +01:00
committed by GitHub
parent 3dde18fbd2
commit 13fe6fb07a
16 changed files with 56 additions and 41 deletions

View File

@@ -22,10 +22,10 @@ export class CommentsPage {
tabsPage = new TabsPage();
numberOfComments = $('#comment-header');
commentUserIcon = $$('#comment-user-icon');
commentUserName = $$('#comment-user');
commentMessage = $$('#comment-message');
commentTime = $$('#comment-time');
commentUserIcon = $$('.adf-comment-img-container');
commentUserName = $$('.adf-comment-user-name');
commentMessage = $$('.adf-comment-message');
commentTime = $$('.adf-comment-message-time');
commentInput = $('#comment-input');
addCommentButton = $("[data-automation-id='comments-input-add']");

View File

@@ -92,6 +92,6 @@ export class ProcessDetailsPage {
}
checkCommentIsDisplayed(comment: string): Promise<void> {
return TestElement.byText('div[id="comment-message"]', comment).waitVisible();
return TestElement.byText('div.adf-comment-message', comment).waitVisible();
}
}

View File

@@ -268,12 +268,12 @@ export class TaskDetailsPage {
}
async checkCommentIsDisplayed(comment: string): Promise<void> {
const row = element(by.cssContainingText('div[id="comment-message"]', comment));
const row = element(by.cssContainingText('div.adf-comment-message', comment));
await BrowserVisibility.waitUntilElementIsVisible(row);
}
async checkIsEmptyCommentListDisplayed(): Promise<void> {
const emptyList = element(by.cssContainingText('div[id="comment-header"]', '(0)'));
const emptyList = element(by.cssContainingText('h1[id="comment-header"]', '(0)'));
await BrowserVisibility.waitUntilElementIsVisible(emptyList);
}