From b75831907a07a09e4a12f3cb65f9c658c9dba4b4 Mon Sep 17 00:00:00 2001 From: SamBobBarnes Date: Tue, 15 Oct 2024 19:21:16 -0500 Subject: [PATCH] updated method name --- packages/desktop-client/e2e/page-models/settings-page.js | 4 ++-- packages/desktop-client/e2e/schedules.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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', ); }