mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Qfix qms comment test after message author styles change (#6635)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
e248aec920
commit
05582748cb
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user