@camunda/e2e-test-suite 0.0.672 → 0.0.674

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OCIdentityClusterVariablesPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
+ const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
5
6
  class OCIdentityClusterVariablesPage {
6
7
  page;
7
8
  variablesList;
@@ -63,7 +64,17 @@ class OCIdentityClusterVariablesPage {
63
64
  await (0, test_1.expect)(this.editVariableModal).toBeHidden();
64
65
  }
65
66
  async assertVariableExists(variableName) {
66
- await (0, test_1.expect)(this.variableRow(variableName)).toBeVisible();
67
+ // Cluster variables are created via the API and indexed asynchronously in
68
+ // the search server, so a freshly-created variable may not yet appear in
69
+ // the search-backed Admin UI list when the tab first renders. The list is
70
+ // not auto-refreshed, so a single visibility check against the default 5s
71
+ // timeout can miss it. Reload between attempts to re-fetch the list until
72
+ // the row appears.
73
+ await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.variableRow(variableName), {
74
+ postAction: async () => {
75
+ await this.page.reload();
76
+ },
77
+ });
67
78
  }
68
79
  async assertVariableValue(variableName, expectedValue) {
69
80
  const row = this.variableRow(variableName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.672",
3
+ "version": "0.0.674",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",