mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
test: 14-mapping tests migration (#18858)
This commit is contained in:
@@ -205,15 +205,17 @@ export class CanvasPage extends BasePage {
|
||||
return this.page.getByTestId('workflow-tags').locator('.el-tag');
|
||||
}
|
||||
async activateWorkflow() {
|
||||
const switchElement = this.page.getByTestId('workflow-activate-switch');
|
||||
const statusElement = this.page.getByTestId('workflow-activator-status');
|
||||
|
||||
const responsePromise = this.page.waitForResponse(
|
||||
(response) =>
|
||||
response.url().includes('/rest/workflows/') && response.request().method() === 'PATCH',
|
||||
);
|
||||
|
||||
await this.page.getByTestId('workflow-activate-switch').click();
|
||||
await switchElement.click();
|
||||
await statusElement.locator('span').filter({ hasText: 'Active' }).waitFor({ state: 'visible' });
|
||||
await responsePromise;
|
||||
|
||||
await this.page.waitForTimeout(200);
|
||||
}
|
||||
|
||||
async clickZoomToFitButton(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user