Qfix qms comment test after message author styles change (#6635)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-09-19 16:19:24 +04:00 committed by GitHub
parent e248aec920
commit 05582748cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()