mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-03 10:17:00 +02:00
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
import type { Locator } from '@playwright/test';
|
|
|
|
export class ChatHubSidebar {
|
|
constructor(private root: Locator) {}
|
|
|
|
getPersonalAgentButton() {
|
|
return this.root.getByRole('menuitem', { name: 'Personal agents' });
|
|
}
|
|
|
|
getWorkflowAgentButton() {
|
|
return this.root.getByRole('menuitem', { name: 'Workflow agents' });
|
|
}
|
|
|
|
getConversations() {
|
|
return this.root.getByTestId('chat-conversation-list').getByRole('link');
|
|
}
|
|
}
|