A local-first personal finance app
import type { Locator, Page } from '@playwright/test';
export class EnvelopeBudgetSummaryModal {
readonly page: Page;
readonly locator: Locator;
readonly heading: Locator;
constructor(locator: Locator) {
this.locator = locator;
this.page = locator.page();
this.heading = locator.getByRole('heading');
}
async close() {
await this.page.keyboard.press('Escape');
}
}