mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
test: Migrate UI tests from Cypress -> Playwright (no-changelog) (#18201)
This commit is contained in:
15
packages/testing/playwright/pages/SettingsPage.ts
Normal file
15
packages/testing/playwright/pages/SettingsPage.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user