@@ -137,10 +137,10 @@ describe('labels', () => {
137137 // verify name, descr, color
138138 cy . getByTestID ( 'label-card' ) . should ( 'have.length' , 1 )
139139 cy . getByTestID ( 'label-card' )
140- . contains ( newLabelName )
140+ . contains ( newLabelName . trim ( ) )
141141 . should ( 'be.visible' )
142142 cy . getByTestID ( 'label-card' )
143- . contains ( newLabelDescription )
143+ . contains ( newLabelDescription . trim ( ) )
144144 . should ( 'be.visible' )
145145 cy . getByTestID ( 'label-card' )
146146 . children ( 'div.cf-flex-box' )
@@ -179,11 +179,11 @@ describe('labels', () => {
179179 // verify name, descr, color
180180 cy . getByTestID ( 'label-card' ) . should ( 'have.length' , 1 )
181181 cy . getByTestID ( 'label-card' )
182- . contains ( oldLabelName )
182+ . contains ( oldLabelName . trim ( ) )
183183 . should ( 'be.visible' )
184184
185185 cy . getByTestID ( 'label-card' )
186- . contains ( oldLabelDescription )
186+ . contains ( oldLabelDescription . trim ( ) )
187187 . should ( 'be.visible' )
188188
189189 cy . getByTestID ( 'label-card' )
@@ -225,10 +225,10 @@ describe('labels', () => {
225225 // verify name, descr, color
226226 cy . getByTestID ( 'label-card' ) . should ( 'have.length' , 1 )
227227 cy . getByTestID ( 'label-card' )
228- . contains ( newLabelName )
228+ . contains ( newLabelName . trim ( ) )
229229 . should ( 'be.visible' )
230230 cy . getByTestID ( 'label-card' )
231- . contains ( newLabelDescription )
231+ . contains ( newLabelDescription . trim ( ) )
232232 . should ( 'be.visible' )
233233 cy . getByTestID ( 'label-card' )
234234 . children ( 'div.cf-flex-box' )
0 commit comments