@camunda/e2e-test-suite 0.0.814 → 0.0.815
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.
|
@@ -509,13 +509,19 @@ class ConsoleOrganizationPage {
|
|
|
509
509
|
await this.organizationManagementLink.click();
|
|
510
510
|
}
|
|
511
511
|
async deleteAllGroups() {
|
|
512
|
-
// Delete groups one at a time
|
|
513
|
-
// re-
|
|
514
|
-
//
|
|
515
|
-
|
|
512
|
+
// Delete groups one at a time. After each confirmed deletion the Console
|
|
513
|
+
// groups table refetches and re-renders asynchronously, so the row count
|
|
514
|
+
// can still include the just-deleted row for a moment. Wait for the count
|
|
515
|
+
// to actually drop before targeting the next row: clicking a delete button
|
|
516
|
+
// while its row is being removed detaches the element from the DOM and the
|
|
517
|
+
// click never lands (retries against a continuously re-rendering table).
|
|
518
|
+
let remaining = await this.deleteButton.count();
|
|
519
|
+
while (remaining > 0) {
|
|
516
520
|
await this.deleteButton.first().click({ timeout: 60000 });
|
|
517
521
|
await this.deleteSubButton.click({ timeout: 60000 });
|
|
518
522
|
await (0, test_1.expect)(this.deleteSubButton).not.toBeVisible({ timeout: 60000 });
|
|
523
|
+
remaining -= 1;
|
|
524
|
+
await (0, test_1.expect)(this.deleteButton).toHaveCount(remaining, { timeout: 60000 });
|
|
519
525
|
}
|
|
520
526
|
}
|
|
521
527
|
}
|
|
@@ -519,12 +519,13 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
519
519
|
password: password,
|
|
520
520
|
});
|
|
521
521
|
// navigateAfterInvitationLink lands the invited user in the SHARED org's
|
|
522
|
-
// Modeler home
|
|
523
|
-
//
|
|
524
|
-
//
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
522
|
+
// Modeler home. The project-collaborator grant propagates asynchronously,
|
|
523
|
+
// and the Modeler home fetches the project list only on load (it does not
|
|
524
|
+
// live-refresh), so the shared project can be absent from the first fetch
|
|
525
|
+
// (observed: the org's /projects returned an empty list right after the
|
|
526
|
+
// invited user logged in) and never appears without a reload. Reload and
|
|
527
|
+
// retry until the freshly granted project shows up.
|
|
528
|
+
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(modelerHomePage, modelerHomePage.crossComponentProjectFolder, 'Cross Component Test Project', 90000, 8);
|
|
528
529
|
});
|
|
529
530
|
await _8_7_1.test.step('Log out from Second User', async () => {
|
|
530
531
|
await settingsPage.clickOpenSettingsButton();
|