Skip to content

Commit

Permalink
updated method name
Browse files Browse the repository at this point in the history
  • Loading branch information
SamBobBarnes committed Oct 16, 2024
1 parent 7169521 commit b758319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/desktop-client/e2e/page-models/settings-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand All @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions packages/desktop-client/e2e/schedules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}
Expand All @@ -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',
);
}
Expand Down

0 comments on commit b758319

Please sign in to comment.