@camunda/e2e-test-suite 0.0.474 → 0.0.475
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,7 @@ const test_1 = require("@playwright/test");
|
|
|
4
4
|
const SM_8_9_1 = require("../../fixtures/SM-8.9");
|
|
5
5
|
const _setup_1 = require("../../test-setup.js");
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
|
+
const env_1 = require("../../utils/env");
|
|
7
8
|
SM_8_9_1.test.describe.configure({ mode: 'parallel' });
|
|
8
9
|
SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
9
10
|
SM_8_9_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
@@ -96,7 +97,7 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
96
97
|
await modelerCreatePage.clickSecondPlacedGateway();
|
|
97
98
|
await modelerCreatePage.clickAppendElementButton();
|
|
98
99
|
await modelerCreatePage.clickAppendEndEventButton('parallelGateway');
|
|
99
|
-
await (0, sleep_1.sleep)(5000);
|
|
100
|
+
await (0, sleep_1.sleep)(env_1.isOpenSearch ? 15000 : 5000);
|
|
100
101
|
});
|
|
101
102
|
await SM_8_9_1.test.step('Open Play', async () => {
|
|
102
103
|
await modelerCreatePage.switchToPlay();
|
|
@@ -123,7 +124,7 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
|
|
|
123
124
|
await modelerCreatePage.clickAppendTaskButton();
|
|
124
125
|
await modelerCreatePage.clickConnectToOtherElementButton();
|
|
125
126
|
await modelerCreatePage.clickSecondPlacedGateway();
|
|
126
|
-
await (0, sleep_1.sleep)(5000);
|
|
127
|
+
await (0, sleep_1.sleep)(env_1.isOpenSearch ? 15000 : 5000);
|
|
127
128
|
await modelerCreatePage.switchToPlay();
|
|
128
129
|
// After diagram modification, Play may show a "Continue" button
|
|
129
130
|
// to redeploy, or it may show the diagram directly. Try clicking
|
|
@@ -6,6 +6,7 @@ const _setup_1 = require("../../test-setup.js");
|
|
|
6
6
|
const sleep_1 = require("../../utils/sleep");
|
|
7
7
|
const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
|
|
8
8
|
const fileUpload_1 = require("../../utils/fileUpload");
|
|
9
|
+
const env_1 = require("../../utils/env");
|
|
9
10
|
SM_8_9_1.test.describe.configure({ mode: 'parallel' });
|
|
10
11
|
SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
11
12
|
SM_8_9_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
|
|
@@ -166,7 +167,7 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
166
167
|
await modelerCreatePage.runProcessInstance(variables);
|
|
167
168
|
});
|
|
168
169
|
await SM_8_9_1.test.step('View process instance in Operate and verify completion', async () => {
|
|
169
|
-
await (0, sleep_1.sleep)(3000); // Allow Zeebe to index the instance before navigating to Operate
|
|
170
|
+
await (0, sleep_1.sleep)(env_1.isOpenSearch ? 10000 : 3000); // Allow Zeebe to index the instance before navigating to Operate (OpenSearch is slower)
|
|
170
171
|
await navigationPage.goToOperate();
|
|
171
172
|
await operateHomePage.clickProcessesTab();
|
|
172
173
|
await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
|