From 05582748cbb1c97ba65556eb4c8d66d00e382ffd Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Thu, 19 Sep 2024 16:19:24 +0400 Subject: [PATCH] Qfix qms comment test after message author styles change (#6635) Signed-off-by: Alexey Zinoviev --- .../tests/model/documents/document-comments-page.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qms-tests/sanity/tests/model/documents/document-comments-page.ts b/qms-tests/sanity/tests/model/documents/document-comments-page.ts index f13c0e3a74..b792ff6495 100644 --- a/qms-tests/sanity/tests/model/documents/document-comments-page.ts +++ b/qms-tests/sanity/tests/model/documents/document-comments-page.ts @@ -79,12 +79,12 @@ export class DocumentCommentsPage extends DocumentCommonPage { .locator('div.popup div.root div.header > div > span:first-child', { hasText: String(commentId) }) .locator('xpath=../../../..') // check header - await expect(comment.locator('div.header > div:first-child')).toContainText(header) + await expect(comment.locator('div.root > div.header > div:first-child')).toContainText(header) // can be resolved await comment.locator('div.header div.tools button').hover() await expect(comment.locator('div.header div.tools button')).toBeEnabled() // check author - await expect(comment.locator('div.root div.header > a span[class*="label"]').first()).toHaveText(author) + await expect(comment.locator('div.root div.header > div.username span.ap-label').first()).toHaveText(author) // check message await expect( comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first() @@ -106,12 +106,12 @@ export class DocumentCommentsPage extends DocumentCommonPage { .locator('div.box div.root div.header > div > span:first-child', { hasText: String(commentId) }) .locator('xpath=../../../..') // check header - await expect(comment.locator('div.header > div:first-child')).toContainText(header) + await expect(comment.locator('div.root > div.header > div:first-child')).toContainText(header) // can be resolved await comment.locator('div.header > div > span:last-child').hover() await expect(comment.locator('div.header div.tools button')).toBeEnabled() // check author - await expect(comment.locator('div.root div.header > a span[class*="label"]').first()).toHaveText(author) + await expect(comment.locator('div.root div.header > div.username span.ap-label').first()).toHaveText(author) // check message await expect( comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first()