mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 19:14:22 -05:00
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
export class SettingsPage {
|
|
constructor(page) {
|
|
this.page = page;
|
|
}
|
|
|
|
async exportData() {
|
|
await this.page.getByRole('button', { name: 'Export data' }).click();
|
|
}
|
|
|
|
async useBudgetType(budgetType) {
|
|
const switchBudgetTypeButton = this.page.getByRole('button', {
|
|
name: `Switch to ${budgetType} budgeting`,
|
|
});
|
|
|
|
await switchBudgetTypeButton.click();
|
|
}
|
|
}
|