@camunda/e2e-test-suite 0.0.522 → 0.0.524

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.
@@ -65,7 +65,7 @@ class NavigationPage {
65
65
  await (0, sleep_1.sleep)(sleepTimeout);
66
66
  }
67
67
  await this.page.goto(url, {
68
- timeout: 30000,
68
+ timeout: 60000,
69
69
  waitUntil: 'domcontentloaded',
70
70
  });
71
71
  const loginPage = new LoginPage_1.LoginPage(this.page);
@@ -74,7 +74,7 @@ class NavigationPage {
74
74
  .or(loginPage.coreUsernameInput)
75
75
  .or(loginPage.keycloakBanner)
76
76
  .first();
77
- await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 30000 });
77
+ await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 60000 });
78
78
  const isBannerVisible = await banner.isVisible().catch(() => false);
79
79
  if (isBannerVisible) {
80
80
  const loginVisible = await loginPage.usernameInput.isVisible();
@@ -48,10 +48,13 @@ class NavigationPage {
48
48
  if (sleepTimeout) {
49
49
  await (0, sleep_1.sleep)(sleepTimeout);
50
50
  }
51
- await this.page.goto(url, { timeout: 10000 });
51
+ await this.page.goto(url, {
52
+ timeout: 60000,
53
+ waitUntil: 'domcontentloaded',
54
+ });
52
55
  const loginPage = new LoginPage_1.LoginPage(this.page);
53
56
  const loginSelector = loginPage.usernameInput;
54
- await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout: 15000 });
57
+ await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout: 60000 });
55
58
  const isBannerVisible = await banner.isVisible();
56
59
  if (isBannerVisible) {
57
60
  try {
@@ -61,11 +61,14 @@ class NavigationPage {
61
61
  if (sleepTimeout) {
62
62
  await (0, sleep_1.sleep)(sleepTimeout);
63
63
  }
64
- await this.page.goto(url, { timeout: 10000 });
64
+ await this.page.goto(url, {
65
+ timeout: 60000,
66
+ waitUntil: 'domcontentloaded',
67
+ });
65
68
  const loginPage = new LoginPage_1.LoginPage(this.page);
66
69
  const loginSelector = loginPage.usernameInput; // Or another unique, stable selector
67
70
  // 1. Wait for either the banner or the login page to appear first.
68
- await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout: 15000 });
71
+ await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout: 60000 });
69
72
  // 2. Now, check which one it was.
70
73
  const isBannerVisible = await banner.isVisible();
71
74
  if (isBannerVisible) {
@@ -56,7 +56,7 @@ class NavigationPage {
56
56
  await (0, sleep_1.sleep)(sleepTimeout);
57
57
  }
58
58
  await this.page.goto(url, {
59
- timeout: 30000,
59
+ timeout: 60000,
60
60
  waitUntil: 'domcontentloaded',
61
61
  });
62
62
  const loginPage = new LoginPage_1.LoginPage(this.page);
@@ -65,7 +65,7 @@ class NavigationPage {
65
65
  .or(loginPage.coreUsernameInput)
66
66
  .or(loginPage.keycloakBanner)
67
67
  .first();
68
- await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 30000 });
68
+ await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 60000 });
69
69
  const isBannerVisible = await banner.isVisible().catch(() => false);
70
70
  if (isBannerVisible) {
71
71
  try {
@@ -65,7 +65,7 @@ class NavigationPage {
65
65
  await (0, sleep_1.sleep)(sleepTimeout);
66
66
  }
67
67
  await this.page.goto(url, {
68
- timeout: 30000,
68
+ timeout: 60000,
69
69
  waitUntil: 'domcontentloaded',
70
70
  });
71
71
  const loginPage = new LoginPage_1.LoginPage(this.page);
@@ -74,7 +74,7 @@ class NavigationPage {
74
74
  .or(loginPage.coreUsernameInput)
75
75
  .or(loginPage.keycloakBanner)
76
76
  .first();
77
- await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 30000 });
77
+ await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 60000 });
78
78
  const isBannerVisible = await banner.isVisible().catch(() => false);
79
79
  if (isBannerVisible) {
80
80
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.522",
3
+ "version": "0.0.524",
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