Files
n8n_Demo/n8n-n8n-1.109.2/packages/testing/playwright/pages/SettingsPage.ts
2025-09-08 04:48:28 +08:00

16 lines
310 B
TypeScript
Executable File

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);
}
async goToSettings() {
await this.page.goto('/settings');
}
}