mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(editor): NDV in focus panel experiment feedback (no-changelog) (#19304)
This commit is contained in:
24
packages/testing/playwright/pages/components/FocusPanel.ts
Normal file
24
packages/testing/playwright/pages/components/FocusPanel.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { Locator } from '@playwright/test';
|
||||
|
||||
export class FocusPanel {
|
||||
constructor(private root: Locator) {}
|
||||
|
||||
/**
|
||||
* Accessors
|
||||
*/
|
||||
|
||||
getHeader(): Locator {
|
||||
return this.root.locator('header');
|
||||
}
|
||||
|
||||
getParameterInputField(path: string): Locator {
|
||||
return this.root.locator(
|
||||
`[data-test-id="parameter-input-field"][title="Parameter: \\"${path}\\""]`,
|
||||
);
|
||||
}
|
||||
|
||||
getMapper(): Locator {
|
||||
// find from the entire page because the mapper is rendered as portal
|
||||
return this.root.page().getByRole('tooltip').getByTestId('ndv-input-panel');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user