Files
n8n-enterprise-unlocked/packages/testing/playwright/pages/SettingsPage.ts
shortstacked 7dd89d77d9 test: Migrate small Cypress tests to Playwright (#18922)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-29 09:04:47 +01:00

20 lines
427 B
TypeScript

import { BasePage } from './BasePage';
export class SettingsPage extends BasePage {
getMenuItems() {
return this.page.getByTestId('menu-item');
}
getMenuItem(id: string) {
return this.page.getByTestId('menu-item').getByTestId(id);
}
getMenuItemByText(text: string) {
return this.page.getByTestId('menu-item').getByText(text, { exact: true });
}
async goToSettings() {
await this.page.goto('/settings');
}
}