mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-27 14:57:21 +02:00
34 lines
682 B
TypeScript
34 lines
682 B
TypeScript
import type { Locator } from '@playwright/test';
|
|
|
|
import { BaseModal } from './BaseModal';
|
|
|
|
export class ChatHubPersonalAgentModal extends BaseModal {
|
|
constructor(protected readonly root: Locator) {
|
|
super(root.page());
|
|
}
|
|
|
|
getRoot() {
|
|
return this.root;
|
|
}
|
|
|
|
getNameField() {
|
|
return this.root.getByPlaceholder(/Enter agent name/);
|
|
}
|
|
|
|
getDescriptionField() {
|
|
return this.root.getByPlaceholder(/Enter agent description/);
|
|
}
|
|
|
|
getSystemPromptField() {
|
|
return this.root.getByPlaceholder(/Enter instructions/);
|
|
}
|
|
|
|
getModelSelectorButton(): Locator {
|
|
return this.root.getByTestId('chat-model-selector');
|
|
}
|
|
|
|
getSaveButton() {
|
|
return this.root.getByText('Save');
|
|
}
|
|
}
|