Skip to content

Commit 12327e3

Browse files
committed
update by pr comments
1 parent 21e06f5 commit 12327e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/e2e/pageObjects/settings-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export class SettingsPage {
7979
* Enable Editor Cleanup switcher
8080
* @param state Enabled(true) or disabled(false)
8181
*/
82-
async changeEditorCleanupSwitcher(state: string): Promise<void> {
82+
async changeEditorCleanupSwitcher(state: boolean): Promise<void> {
8383
const currentState = await this.getEditorCleanupSwitcherValue();
84-
if (currentState !== state) {
84+
if (currentState !== `${state}`) {
8585
await t.click(this.switchEditorCleanupOption);
8686
}
8787
}

tests/e2e/tests/regression/workbench/editor-cleanup.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test
6666
await t.click(myRedisDatabasePage.settingsButton);
6767
await t.click(settingsPage.accordionWorkbenchSettings);
6868
// Enable Editor Cleanup
69-
await settingsPage.changeEditorCleanupSwitcher('true');
69+
await settingsPage.changeEditorCleanupSwitcher(true);
7070
await common.reloadPage();
7171
await t.click(settingsPage.accordionWorkbenchSettings);
7272
// Verify that Editor Cleanup setting is saved when refreshing the page

0 commit comments

Comments
 (0)