mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 12:25:17 +00:00
UBERF-8131 Reuse editor styles in rendered content (#6587)
This commit is contained in:
parent
5fcc42f982
commit
fada0c4718
@ -22,4 +22,6 @@
|
|||||||
$: node = htmlToJSON(value)
|
$: node = htmlToJSON(value)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Node {node} {preview} />
|
<div class="text-markup-view">
|
||||||
|
<Node {node} {preview} />
|
||||||
|
</div>
|
||||||
|
@ -28,4 +28,6 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Node {node} {preview} />
|
<div class="text-markup-view">
|
||||||
|
<Node {node} {preview} />
|
||||||
|
</div>
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-editor-view {
|
.text-editor-view,
|
||||||
|
.text-markup-view {
|
||||||
// overflow-y: auto;
|
// overflow-y: auto;
|
||||||
color: var(--theme-text-primary-color);
|
color: var(--theme-text-primary-color);
|
||||||
margin: 0.25rem 0;
|
margin: 0.25rem 0;
|
||||||
|
@ -86,9 +86,13 @@ export class DocumentCommentsPage extends DocumentCommonPage {
|
|||||||
// 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 > a span[class*="label"]').first()).toHaveText(author)
|
||||||
// check message
|
// check message
|
||||||
await expect(comment.locator('div.activityMessage div.flex-col div.clear-mins > p').first()).toHaveText(message)
|
await expect(
|
||||||
|
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first()
|
||||||
|
).toHaveText(message)
|
||||||
// check comment
|
// check comment
|
||||||
await expect(comment.locator('div.activityMessage div.flex-col div.clear-mins > p').last()).toHaveText(reply)
|
await expect(
|
||||||
|
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').last()
|
||||||
|
).toHaveText(reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkCommentInPanelById (
|
async checkCommentInPanelById (
|
||||||
@ -109,8 +113,12 @@ export class DocumentCommentsPage extends DocumentCommonPage {
|
|||||||
// 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 > a span[class*="label"]').first()).toHaveText(author)
|
||||||
// check message
|
// check message
|
||||||
await expect(comment.locator('div.activityMessage div.flex-col div.clear-mins > p').first()).toHaveText(message)
|
await expect(
|
||||||
|
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').first()
|
||||||
|
).toHaveText(message)
|
||||||
// check comment
|
// check comment
|
||||||
await expect(comment.locator('div.activityMessage div.flex-col div.clear-mins > p').last()).toHaveText(reply)
|
await expect(
|
||||||
|
comment.locator('div.activityMessage div.flex-col div.clear-mins div.text-markup-view > p').last()
|
||||||
|
).toHaveText(reply)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user