first commit
This commit is contained in:
24
tests/e2e/features/mcp-settings/pages/mcp-settings.page.ts
Normal file
24
tests/e2e/features/mcp-settings/pages/mcp-settings.page.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Locator, Page } from '@playwright/test'
|
||||
import { BasePage } from '../../../core/pages/base.page'
|
||||
import { waitForNetworkIdle } from '../../../core/utils/test-helpers'
|
||||
|
||||
export class MCPSettingsPage extends BasePage {
|
||||
readonly mcpSettingsView: Locator
|
||||
readonly saveBtn: Locator
|
||||
readonly maxAgentDepthInput: Locator
|
||||
readonly toolTimeoutInput: Locator
|
||||
|
||||
constructor(page: Page) {
|
||||
super(page)
|
||||
|
||||
this.mcpSettingsView = page.getByTestId('mcp-settings-view')
|
||||
this.saveBtn = page.getByTestId('mcp-settings-save-btn')
|
||||
this.maxAgentDepthInput = page.getByTestId('mcp-agent-depth-input').or(page.locator('#mcp-agent-depth'))
|
||||
this.toolTimeoutInput = page.getByTestId('mcp-tool-timeout-input').or(page.locator('#mcp-tool-execution-timeout'))
|
||||
}
|
||||
|
||||
async goto(): Promise<void> {
|
||||
await this.page.goto('/workspace/mcp-settings')
|
||||
await waitForNetworkIdle(this.page)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user