mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-29 12:05:04 +02:00
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
814 B
TypeScript
29 lines
814 B
TypeScript
import type { Locator } from '@playwright/test';
|
|
|
|
import { BasePage } from './BasePage';
|
|
import { SetupWorkflowCredentialsModal } from './components/SetupWorkflowCredentialsModal';
|
|
|
|
/**
|
|
* 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 {
|
|
readonly modal = SetupWorkflowCredentialsModal.fromPage(this.page);
|
|
|
|
get container(): Locator {
|
|
return this.modal.getModal();
|
|
}
|
|
|
|
getContinueButton(): Locator {
|
|
return this.modal.getContinueButton();
|
|
}
|
|
|
|
/**
|
|
* Click the continue button to close the modal
|
|
*/
|
|
async clickContinue(): Promise<void> {
|
|
await this.modal.clickContinue();
|
|
}
|
|
}
|