File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/regression/workbench Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ export class SettingsPage {
79
79
* Enable Editor Cleanup switcher
80
80
* @param state Enabled(true) or disabled(false)
81
81
*/
82
- async changeEditorCleanupSwitcher ( state : string ) : Promise < void > {
82
+ async changeEditorCleanupSwitcher ( state : boolean ) : Promise < void > {
83
83
const currentState = await this . getEditorCleanupSwitcherValue ( ) ;
84
- if ( currentState !== state ) {
84
+ if ( currentState !== ` ${ state } ` ) {
85
85
await t . click ( this . switchEditorCleanupOption ) ;
86
86
}
87
87
}
Original file line number Diff line number Diff line change 66
66
await t . click ( myRedisDatabasePage . settingsButton ) ;
67
67
await t . click ( settingsPage . accordionWorkbenchSettings ) ;
68
68
// Enable Editor Cleanup
69
- await settingsPage . changeEditorCleanupSwitcher ( ' true' ) ;
69
+ await settingsPage . changeEditorCleanupSwitcher ( true ) ;
70
70
await common . reloadPage ( ) ;
71
71
await t . click ( settingsPage . accordionWorkbenchSettings ) ;
72
72
// Verify that Editor Cleanup setting is saved when refreshing the page
You can’t perform that action at this time.
0 commit comments