Some checks failed
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
34 lines
892 B
TypeScript
34 lines
892 B
TypeScript
import type { Locator } from '@playwright/test';
|
|
|
|
import { BasePage } from './BasePage';
|
|
|
|
/**
|
|
* Page object for the Workflow Credential Setup Modal
|
|
* This modal appears in the workflow editor when users need to complete credential setup
|
|
* after skipping or partially completing it during template setup
|
|
*/
|
|
export class WorkflowCredentialSetupModal extends BasePage {
|
|
/**
|
|
* Get the workflow credential setup modal
|
|
* @returns Locator for the modal element
|
|
*/
|
|
getModal(): Locator {
|
|
return this.page.getByTestId('setup-workflow-credentials-modal');
|
|
}
|
|
|
|
/**
|
|
* Get the continue button in the modal
|
|
* @returns Locator for the continue button
|
|
*/
|
|
getContinueButton(): Locator {
|
|
return this.page.getByTestId('continue-button');
|
|
}
|
|
|
|
/**
|
|
* Click the continue button to close the modal
|
|
*/
|
|
async clickContinue(): Promise<void> {
|
|
await this.getContinueButton().click();
|
|
}
|
|
}
|