@camunda/e2e-test-suite 0.0.774 → 0.0.775

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.
@@ -11,10 +11,10 @@ declare class OperateProcessInstancePage {
11
11
  constructor(page: Page);
12
12
  connectorResultVariableName(name: string): Promise<Locator>;
13
13
  connectorResultVariableValue(variableName: string): Promise<Locator>;
14
- getProcessVariableValue(variableName: string): Promise<Locator>;
15
14
  completedIconAssertion(): Promise<void>;
16
15
  activeIconAssertion(): Promise<void>;
17
16
  assertProcessVariableContainsText(variableName: string, text: string): Promise<void>;
17
+ getProcessVariableValue(variableName: string): Promise<Locator>;
18
18
  /**
19
19
  * Gets the JSON value of a variable by name
20
20
  */
@@ -32,31 +32,25 @@ class OperateProcessInstancePage {
32
32
  async connectorResultVariableValue(variableName) {
33
33
  return await this.page.getByTestId(variableName).locator('td').last();
34
34
  }
35
- async getProcessVariableValue(variableName) {
36
- return await this.page
37
- .getByTestId(`variable-${variableName}`)
38
- .getByRole('cell')
39
- .nth(1);
40
- }
41
35
  async completedIconAssertion() {
42
36
  let retryCount = 0;
43
- const maxRetries = 8;
37
+ const maxRetries = 12;
44
38
  while (retryCount < maxRetries) {
45
39
  try {
46
40
  await (0, test_1.expect)(this.completedIcon).toBeVisible({
47
- timeout: 60000,
41
+ timeout: 90000,
48
42
  });
49
43
  return; // Exit the function if the expectation is met
50
44
  }
51
45
  catch (error) {
52
- // If the active icon isn't found, reload the page and try again
46
+ // If the completed icon isn't found, reload the page and try again
53
47
  retryCount++;
54
48
  console.log(`Attempt ${retryCount} failed. Retrying...`);
55
49
  await this.page.reload();
56
50
  await (0, sleep_1.sleep)(10000);
57
51
  }
58
52
  }
59
- throw new Error(`Active icon not visible after ${maxRetries} attempts.`);
53
+ throw new Error(`Completed icon not visible after ${maxRetries} attempts.`);
60
54
  }
61
55
  async activeIconAssertion() {
62
56
  let retryCount = 0;
@@ -94,6 +88,12 @@ class OperateProcessInstancePage {
94
88
  }
95
89
  throw new Error(`Failed to assert variable ${variableName} contains ${text} after ${maxRetries} attempts.`);
96
90
  }
91
+ async getProcessVariableValue(variableName) {
92
+ return await this.page
93
+ .getByTestId(`variable-${variableName}`)
94
+ .getByRole('cell')
95
+ .nth(1);
96
+ }
97
97
  /**
98
98
  * Gets the JSON value of a variable by name
99
99
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.774",
3
+ "version": "0.0.775",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",