mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-28 11:35:03 +02:00
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
22 lines
525 B
TypeScript
22 lines
525 B
TypeScript
import type { Locator } from '@playwright/test';
|
|
|
|
import { BaseModal } from './BaseModal';
|
|
import { NodeCredentials } from './NodeCredentials';
|
|
|
|
export class ChatHubCredentialModal extends BaseModal {
|
|
private readonly credentials: NodeCredentials;
|
|
|
|
constructor(private root: Locator) {
|
|
super(root.page());
|
|
this.credentials = new NodeCredentials(root);
|
|
}
|
|
|
|
getCredentialSelector(): Locator {
|
|
return this.root.getByRole('combobox');
|
|
}
|
|
|
|
getCreateButton(): Locator {
|
|
return this.credentials.getCreateNewItem();
|
|
}
|
|
}
|