mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03: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)
|
||||
</script>
|
||||
|
||||
<Node {node} {preview} />
|
||||
<div class="text-markup-view">
|
||||
<Node {node} {preview} />
|
||||
</div>
|
||||
|
@ -28,4 +28,6 @@
|
||||
}
|
||||
</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;
|
||||
color: var(--theme-text-primary-color);
|
||||
margin: 0.25rem 0;
|
||||
|
@ -86,9 +86,13 @@ export class DocumentCommentsPage extends DocumentCommonPage {
|
||||
// check author
|
||||
await expect(comment.locator('div.root div.header > a span[class*="label"]').first()).toHaveText(author)
|
||||
// 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
|
||||
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 (
|
||||
@ -109,8 +113,12 @@ export class DocumentCommentsPage extends DocumentCommonPage {
|
||||
// check author
|
||||
await expect(comment.locator('div.root div.header > a span[class*="label"]').first()).toHaveText(author)
|
||||
// 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
|
||||
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