@camunda/e2e-test-suite 0.0.998 → 0.0.1000

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.
@@ -63,6 +63,9 @@ async function getUserToken(page) {
63
63
  // first rejection.
64
64
  const TRANSIENT_API_STATUSES = [429, 500, 502, 503, 504];
65
65
  const API_MAX_ATTEMPTS = 5;
66
+ // Overrides the global actionTimeout (10s) for Console API calls only: cluster
67
+ // creation regularly needs longer than that to answer.
68
+ const API_TIMEOUT_MS = 15000;
66
69
  async function clusterApiRequest(page, method, url, data) {
67
70
  let response;
68
71
  for (let attempt = 1; attempt <= API_MAX_ATTEMPTS; attempt++) {
@@ -70,6 +73,7 @@ async function clusterApiRequest(page, method, url, data) {
70
73
  response = await page.request.fetch(url, {
71
74
  method,
72
75
  headers: { Authorization: `Bearer ${token}` },
76
+ timeout: API_TIMEOUT_MS,
73
77
  ...(data === undefined ? {} : { data }),
74
78
  });
75
79
  if (!TRANSIENT_API_STATUSES.includes(response.status()))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.998",
3
+ "version": "0.0.1000",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",