@camunda/e2e-test-suite 0.0.382 → 0.0.383
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.
|
@@ -731,7 +731,7 @@ class ModelerCreatePage {
|
|
|
731
731
|
}
|
|
732
732
|
async instanceStartedAssertion() {
|
|
733
733
|
await (0, test_1.expect)(this.page.getByText('Instance started!')).toBeVisible({
|
|
734
|
-
timeout:
|
|
734
|
+
timeout: 30000,
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
async assertImplementationOption(implementationType) {
|
|
@@ -74,7 +74,7 @@ class ModelerHomePage {
|
|
|
74
74
|
}
|
|
75
75
|
async clickCreateNewProjectButton() {
|
|
76
76
|
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.createNewProjectButton, {
|
|
77
|
-
totalTimeout:
|
|
77
|
+
totalTimeout: 60000,
|
|
78
78
|
});
|
|
79
79
|
await this.createNewProjectButton.click();
|
|
80
80
|
}
|
|
@@ -85,16 +85,33 @@ class ModelerHomePage {
|
|
|
85
85
|
await this.projectNameInput.press('Enter');
|
|
86
86
|
}
|
|
87
87
|
async createCrossComponentProjectFolder() {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
const maxAttempts = 3;
|
|
89
|
+
const initialWaitMs = 10000;
|
|
90
|
+
const retryWaitMs = 5000;
|
|
91
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
92
|
+
try {
|
|
93
|
+
await (0, sleep_1.sleep)(attempt === 0 ? initialWaitMs : retryWaitMs);
|
|
94
|
+
await this.clickMessageBanner();
|
|
95
|
+
if (await this.crossComponentProjectFolder.isVisible()) {
|
|
96
|
+
console.log('Cross Component Project folder already exists. Clicking into it');
|
|
97
|
+
await this.clickCrossComponentProjectFolder();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
await this.clickCreateNewProjectButton();
|
|
101
|
+
await this.enterNewProjectName(this.defaultFolderName);
|
|
102
|
+
await (0, sleep_1.sleep)(5000);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
if (attempt < maxAttempts - 1) {
|
|
107
|
+
console.log(`createCrossComponentProjectFolder attempt ${attempt + 1} failed. Reloading and retrying...`);
|
|
108
|
+
await this.page.reload();
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
throw error;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
94
114
|
}
|
|
95
|
-
await this.clickCreateNewProjectButton();
|
|
96
|
-
await this.enterNewProjectName(this.defaultFolderName);
|
|
97
|
-
await (0, sleep_1.sleep)(5000);
|
|
98
115
|
}
|
|
99
116
|
async clickCrossComponentProjectFolder() {
|
|
100
117
|
let attempts = 0;
|
|
@@ -173,8 +190,8 @@ class ModelerHomePage {
|
|
|
173
190
|
async clickMessageBanner() {
|
|
174
191
|
try {
|
|
175
192
|
await Promise.race([
|
|
176
|
-
this.messageBanner.click(),
|
|
177
|
-
this.closeButton.click(),
|
|
193
|
+
this.messageBanner.click({ timeout: 5000 }),
|
|
194
|
+
this.closeButton.click({ timeout: 5000 }),
|
|
178
195
|
]);
|
|
179
196
|
}
|
|
180
197
|
catch {
|
|
@@ -51,7 +51,7 @@ if (process.env.IS_MT === 'true') {
|
|
|
51
51
|
});
|
|
52
52
|
await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
|
|
53
53
|
await navigationPage.goToModeler();
|
|
54
|
-
await modelerHomePage.
|
|
54
|
+
await modelerHomePage.createCrossComponentProjectFolder();
|
|
55
55
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
56
56
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
57
57
|
});
|
|
@@ -348,7 +348,7 @@ if (process.env.IS_MT === 'true') {
|
|
|
348
348
|
});
|
|
349
349
|
await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
|
|
350
350
|
await navigationPage.goToModeler();
|
|
351
|
-
await modelerHomePage.
|
|
351
|
+
await modelerHomePage.createCrossComponentProjectFolder();
|
|
352
352
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
353
353
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
354
354
|
});
|
|
@@ -427,7 +427,7 @@ if (process.env.IS_MT === 'true') {
|
|
|
427
427
|
});
|
|
428
428
|
await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
|
|
429
429
|
await navigationPage.goToModeler();
|
|
430
|
-
await modelerHomePage.
|
|
430
|
+
await modelerHomePage.createCrossComponentProjectFolder();
|
|
431
431
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
432
432
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
433
433
|
});
|
|
@@ -487,7 +487,7 @@ if (process.env.IS_MT === 'true') {
|
|
|
487
487
|
});
|
|
488
488
|
await SM_8_9_1.test.step('Open Cross Component Test Project', async () => {
|
|
489
489
|
await navigationPage.goToModeler();
|
|
490
|
-
await modelerHomePage.
|
|
490
|
+
await modelerHomePage.createCrossComponentProjectFolder();
|
|
491
491
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
492
492
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
493
493
|
});
|