mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 20:13:20 +00: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('div.popup div.root div.header > div > span:first-child', { hasText: String(commentId) })
|
||||||
.locator('xpath=../../../..')
|
.locator('xpath=../../../..')
|
||||||
// check header
|
// 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
|
// can be resolved
|
||||||
await comment.locator('div.header div.tools button').hover()
|
await comment.locator('div.header div.tools button').hover()
|
||||||
await expect(comment.locator('div.header div.tools button')).toBeEnabled()
|
await expect(comment.locator('div.header div.tools button')).toBeEnabled()
|
||||||
// check author
|
// 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
|
// check message
|
||||||
await expect(
|
await expect(
|
||||||
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first()
|
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('div.box div.root div.header > div > span:first-child', { hasText: String(commentId) })
|
||||||
.locator('xpath=../../../..')
|
.locator('xpath=../../../..')
|
||||||
// check header
|
// 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
|
// can be resolved
|
||||||
await comment.locator('div.header > div > span:last-child').hover()
|
await comment.locator('div.header > div > span:last-child').hover()
|
||||||
await expect(comment.locator('div.header div.tools button')).toBeEnabled()
|
await expect(comment.locator('div.header div.tools button')).toBeEnabled()
|
||||||
// check author
|
// 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
|
// check message
|
||||||
await expect(
|
await expect(
|
||||||
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first()
|
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first()
|
||||||
|
Loading…
Reference in New Issue
Block a user