test: 14-mapping tests migration (#18858)

This commit is contained in:
shortstacked
2025-08-28 09:07:14 +01:00
committed by GitHub
parent 4bbf7cb749
commit ff56c95605
17 changed files with 807 additions and 440 deletions

View File

@@ -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> {