@camunda/e2e-test-suite 0.0.933 → 0.0.934
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.
|
@@ -249,7 +249,12 @@ class IdentityPage {
|
|
|
249
249
|
await button.click();
|
|
250
250
|
}
|
|
251
251
|
async fillGroupNameInput(name) {
|
|
252
|
-
await this.
|
|
252
|
+
await (0, test_1.expect)(this.createGroupDialoge).toBeVisible({ timeout: 60000 });
|
|
253
|
+
await this.groupNameInput.waitFor({ state: 'visible', timeout: 60000 });
|
|
254
|
+
await (0, test_1.expect)(async () => {
|
|
255
|
+
await this.groupNameInput.fill(name);
|
|
256
|
+
await (0, test_1.expect)(this.groupNameInput).toHaveValue(name, { timeout: 5000 });
|
|
257
|
+
}).toPass({ timeout: 60000, intervals: [1000, 2000, 5000] });
|
|
253
258
|
}
|
|
254
259
|
async clickUserGroup(name) {
|
|
255
260
|
await this.page.getByRole('cell', { name: name }).click();
|
|
@@ -99,6 +99,7 @@ declare class ModelerCreatePage {
|
|
|
99
99
|
clickSecondPlacedElement(): Promise<void>;
|
|
100
100
|
clickFirstPlacedGateway(): Promise<void>;
|
|
101
101
|
clickSecondPlacedGateway(): Promise<void>;
|
|
102
|
+
private reloadAndWaitForCanvas;
|
|
102
103
|
/**
|
|
103
104
|
* Detects if the page has been redirected to the Keycloak login page
|
|
104
105
|
* (session expiry) or is in the middle of an OIDC redirect, and performs
|
|
@@ -460,24 +460,28 @@ class ModelerCreatePage {
|
|
|
460
460
|
}
|
|
461
461
|
async clickFirstPlacedGateway() {
|
|
462
462
|
try {
|
|
463
|
-
await this.firstPlacedGateway.click({ timeout:
|
|
463
|
+
await this.firstPlacedGateway.click({ timeout: 15000 });
|
|
464
464
|
await this.appendElementButton.isVisible({ timeout: 3000 });
|
|
465
465
|
}
|
|
466
466
|
catch (error) {
|
|
467
|
-
await this.
|
|
468
|
-
await this.firstPlacedGateway.click({ timeout:
|
|
467
|
+
await this.reloadAndWaitForCanvas(this.firstPlacedGateway);
|
|
468
|
+
await this.firstPlacedGateway.click({ timeout: 30000 });
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
async clickSecondPlacedGateway() {
|
|
472
472
|
try {
|
|
473
|
-
await this.secondPlacedGateway.click({ timeout:
|
|
473
|
+
await this.secondPlacedGateway.click({ timeout: 15000 });
|
|
474
474
|
await this.appendElementButton.isVisible({ timeout: 3000 });
|
|
475
475
|
}
|
|
476
476
|
catch (error) {
|
|
477
|
-
await this.
|
|
478
|
-
await this.secondPlacedGateway.click({ timeout:
|
|
477
|
+
await this.reloadAndWaitForCanvas(this.secondPlacedGateway);
|
|
478
|
+
await this.secondPlacedGateway.click({ timeout: 30000 });
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
+
async reloadAndWaitForCanvas(element) {
|
|
482
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
483
|
+
await element.waitFor({ state: 'visible', timeout: 120000 });
|
|
484
|
+
}
|
|
481
485
|
/**
|
|
482
486
|
* Detects if the page has been redirected to the Keycloak login page
|
|
483
487
|
* (session expiry) or is in the middle of an OIDC redirect, and performs
|