diff --git a/packages/desktop-client/e2e/page-models/settings-page.js b/packages/desktop-client/e2e/page-models/settings-page.js index dcf838cea5b..fdcc9547c5b 100644 --- a/packages/desktop-client/e2e/page-models/settings-page.js +++ b/packages/desktop-client/e2e/page-models/settings-page.js @@ -8,7 +8,7 @@ export class SettingsPage { } async useBudgetType(budgetType) { - await this.enableExperimentalFeature('Budget mode toggle'); + await this.toggleExperimentalFeature('Budget mode toggle'); const switchBudgetTypeButton = this.page.getByRole('button', { name: `Switch to ${budgetType} budgeting`, @@ -17,7 +17,7 @@ export class SettingsPage { await switchBudgetTypeButton.click(); } - async enableExperimentalFeature(featureName) { + async toggleExperimentalFeature(featureName) { const advancedSettingsButton = this.page.getByTestId('advanced-settings'); await advancedSettingsButton.click(); diff --git a/packages/desktop-client/e2e/schedules.test.js b/packages/desktop-client/e2e/schedules.test.js index 31a1b901e7c..012df920b1b 100644 --- a/packages/desktop-client/e2e/schedules.test.js +++ b/packages/desktop-client/e2e/schedules.test.js @@ -35,7 +35,7 @@ test.describe('Schedules', () => { test.beforeEach(async () => { if (upcomingLengthAdjustment) { const settingsPage = await navigation.goToSettingsPage(); - await settingsPage.enableExperimentalFeature( + await settingsPage.toggleExperimentalFeature( 'Scheduled transaction upcoming length adjustment', ); } @@ -44,7 +44,7 @@ test.describe('Schedules', () => { test.afterEach(async () => { if (upcomingLengthAdjustment) { const settingsPage = await navigation.goToSettingsPage(); - await settingsPage.enableExperimentalFeature( + await settingsPage.toggleExperimentalFeature( 'Scheduled transaction upcoming length adjustment', ); }