@camunda/e2e-test-suite 0.0.1257 → 0.0.1258

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.
@@ -66,25 +66,25 @@ class BrowseAllConnectorMarketplacePage {
66
66
  continue;
67
67
  }
68
68
  await addButton.click({ timeout: 60000 });
69
- if (await this.completeImportReviewIfNecessary(retryButton)) {
69
+ if (await this.completeImportReviewIfNecessary(retryButton, addedStatus)) {
70
70
  break;
71
71
  }
72
72
  if (attempt === 3) {
73
73
  throw new Error('Browse All could not import the Marketplace connector after 3 attempts.');
74
74
  }
75
75
  }
76
- await this.availableElementsHeading.waitFor({
77
- state: 'visible',
78
- timeout: 120000,
79
- });
76
+ await this.availableElementsHeading
77
+ .or(addedStatus)
78
+ .waitFor({ state: 'visible', timeout: 120000 });
80
79
  await browseAllDialog
81
80
  .getByRole('button', { name: 'Close' })
82
81
  .click({ timeout: 60000 });
83
82
  await browseAllDialog.waitFor({ state: 'hidden', timeout: 60000 });
84
83
  }
85
- async completeImportReviewIfNecessary(retryButton) {
84
+ async completeImportReviewIfNecessary(retryButton, addedStatus) {
86
85
  await this.importModal
87
86
  .or(this.availableElementsHeading)
87
+ .or(addedStatus)
88
88
  .or(retryButton)
89
89
  .waitFor({ state: 'visible', timeout: 120000 });
90
90
  if (await retryButton.isVisible()) {
@@ -107,6 +107,7 @@ class BrowseAllConnectorMarketplacePage {
107
107
  }
108
108
  await this.importModal.waitFor({ state: 'hidden', timeout: 120000 });
109
109
  await this.availableElementsHeading
110
+ .or(addedStatus)
110
111
  .or(retryButton)
111
112
  .waitFor({ state: 'visible', timeout: 120000 });
112
113
  return !(await retryButton.isVisible());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1257",
3
+ "version": "0.0.1258",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",