Skip to content

Commit 4c135b1

Browse files
committed
test(cy): Adjust mulitline cell test
Signed-off-by: Jonas <[email protected]>
1 parent b18ab8b commit 4c135b1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cypress/e2e/nodes/Table.spec.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,18 @@ describe('table plugin', () => {
125125
})
126126

127127
it('Creates table and add multilines', function () {
128-
const multilinesContent = 'Line 1\nLine 2\nLine 3'
129-
130128
cy.getActionEntry('table').click()
131129
cy.getContent()
132130
.find('table:nth-of-type(1) tr:nth-child(2) td:nth-child(1)')
133131
.click()
134132

135-
cy.getContent().type(multilinesContent)
133+
cy.getContent().type('Line 1\nLine 2\nLine 3')
136134

137135
cy.getContent()
138136
.find('table:nth-of-type(1) tr:nth-child(2) td:nth-child(1) .content')
139137
.then(($el) => {
140138
expect($el.get(0).innerHTML).to.equal(
141-
multilinesContent.replace(/\n/g, '<br>'),
139+
'<p dir="ltr">Line 1</p><p dir="ltr">Line 2</p><p dir="ltr">Line 3</p>',
142140
)
143141
})
144142
})

0 commit comments

Comments
 (0)