@camunda/e2e-test-suite 0.0.521 → 0.0.523

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.
@@ -13,7 +13,7 @@ async function loginWithRetry(page, loginPage, testUser, timeout, maxRetries = 3
13
13
  try {
14
14
  await page.goto('/');
15
15
  await (0, sleep_1.sleep)(timeout);
16
- await loginPage.login(testUser);
16
+ await loginPage.loginWithTestUser(testUser);
17
17
  return;
18
18
  }
19
19
  catch (error) {
@@ -37,8 +37,7 @@ async function loginWithRetry(page, loginPage, testUser, timeout, maxRetries = 3
37
37
  try {
38
38
  await page.goto('/');
39
39
  await (0, sleep_1.sleep)(timeout);
40
- await (0, test_1.expect)(loginPage.loginMessage).toBeVisible({ timeout: 60000 });
41
- await loginPage.login(testUser);
40
+ await loginPage.loginWithTestUser(testUser);
42
41
  return;
43
42
  }
44
43
  catch (error) {
@@ -13,12 +13,7 @@ async function loginWithRetry(page, loginPage, testUser, timeout, maxRetries = 3
13
13
  try {
14
14
  await page.goto('/');
15
15
  await (0, sleep_1.sleep)(timeout);
16
- // Confirm we reached the login page before filling credentials.
17
- // Without this check the locator for 'Email address' can match a hidden
18
- // invite-user input on the Console page when the logout redirect has not
19
- // yet completed, causing a 200 s wait before failing.
20
- await (0, test_1.expect)(loginPage.loginMessage).toBeVisible({ timeout: 60000 });
21
- await loginPage.login(testUser);
16
+ await loginPage.loginWithTestUser(testUser);
22
17
  return;
23
18
  }
24
19
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.521",
3
+ "version": "0.0.523",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",
@@ -387,7 +387,16 @@ print_result_multi() {
387
387
  fi
388
388
  }
389
389
 
390
- _curl_common() { curl --http1.1 --max-time 30 --connect-timeout 10 -i -s -H 'Expect:' "$@"; }
390
+ _curl_common() {
391
+ # --retry / --retry-all-errors: transparently retry transient failures
392
+ # (TCP reset, connection close before headers, partial reads) up to 3 times
393
+ # with a short backoff. Without this, brief network blips during long test
394
+ # runs surface as empty responses (`<none>` status) and false-positive
395
+ # FAILEDs in print_result. --max-time still bounds total time per attempt.
396
+ curl --http1.1 --max-time 30 --connect-timeout 10 \
397
+ --retry 3 --retry-delay 1 --retry-connrefused --retry-all-errors \
398
+ -i -s -H 'Expect:' "$@"
399
+ }
391
400
 
392
401
  # Helper to get curl -F argument for tenantId in multipart forms
393
402
  # Since <default> starts with <, curl interprets it as file read