File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments