File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -120,24 +120,26 @@ datalensTest.describe('Dataset history', () => {
120120 const firstFieldVisibleIcon = page
121121 . locator ( slct ( DatasetFieldsTabQa . FieldVisibleColumnIcon ) )
122122 . first ( ) ;
123- const visibleClassBefore = await firstFieldVisibleIcon . getAttribute ( 'title' ) ;
123+ const visibleAttributeBefore = await firstFieldVisibleIcon . getAttribute ( 'title' ) ;
124124
125125 // Hide first field
126126 await firstFieldVisibleIcon . click ( ) ;
127127
128- const visibleClassAfterHide = await firstFieldVisibleIcon . getAttribute ( 'title' ) ;
129- expect ( visibleClassAfterHide ) . not . toBe ( visibleClassBefore ) ;
128+ const visibleAttributeAfterHide = await firstFieldVisibleIcon . getAttribute ( 'title' ) ;
129+ expect ( visibleAttributeAfterHide ) . not . toBe ( visibleAttributeBefore ) ;
130130
131131 // Undo the hide
132132 const undoBtn = page . locator ( slct ( EditHistoryQA . UndoBtn ) ) ;
133+ await expect ( undoBtn ) . toBeEnabled ( ) ;
133134 await undoBtn . click ( ) ;
134135
135136 // Redo the hide
136137 const redoBtn = page . locator ( slct ( EditHistoryQA . RedoBtn ) ) ;
138+ await expect ( undoBtn ) . toBeEnabled ( ) ;
137139 await redoBtn . click ( ) ;
138140
139- const visibleClassAfterRedo = await firstFieldVisibleIcon . getAttribute ( 'title' ) ;
140- expect ( visibleClassAfterRedo ) . toBe ( visibleClassAfterHide ) ;
141+ const visibleAttributeAfterRedo = await firstFieldVisibleIcon . getAttribute ( 'title' ) ;
142+ expect ( visibleAttributeAfterRedo ) . toBe ( visibleAttributeAfterHide ) ;
141143 } ) ;
142144
143145 datalensTest ( 'Undo and Redo restores field duplication' , async ( { page} ) => {
You can’t perform that action at this time.
0 commit comments