n8n/packages/testing/playwright/pages/WorkflowCredentialSetupModal.ts
n8n-cat-bot[bot] 08a7038f97
chore: Consolidate duplicate test-id definitions in page objects (#32861)
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>
2026-06-23 15:51:49 +00:00

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();
}
}