UBERF-8131 Reuse editor styles in rendered content (#6587)

This commit is contained in:
Alexander Onnikov 2024-09-17 07:31:33 +07:00 committed by GitHub
parent 5fcc42f982
commit fada0c4718
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 7 deletions

View File

@ -22,4 +22,6 @@
$: node = htmlToJSON(value)
</script>
<Node {node} {preview} />
<div class="text-markup-view">
<Node {node} {preview} />
</div>

View File

@ -28,4 +28,6 @@
}
</script>
<Node {node} {preview} />
<div class="text-markup-view">
<Node {node} {preview} />
</div>

View File

@ -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;

View File

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