@camunda/e2e-test-suite 0.0.1280 → 0.0.1281

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.
@@ -16,26 +16,20 @@ class ClusterDetailsPage {
16
16
  const matchesLink = (url) => typeof link === 'string'
17
17
  ? url.href.startsWith(link)
18
18
  : link.test(url.href);
19
- // Serve a stub document only when the external site itself is
20
- // unreachable, so the popup still commits the URL Console navigated to.
19
+ // Always serve a stub document: the popup only has to commit the URL
20
+ // Console navigated to, and Playwright withholds the "popup" event until
21
+ // this handler resolves, so fetching the real site would tie the popup
22
+ // wait to the external site's latency.
21
23
  const handler = async (route) => {
22
24
  if (route.request().resourceType() !== 'document') {
23
25
  await route.continue();
24
26
  return;
25
27
  }
26
- try {
27
- const response = await route.fetch({ timeout: 30000 });
28
- await route.fulfill({ response });
29
- }
30
- catch (error) {
31
- const url = route.request().url();
32
- console.warn(`External link ${url} unreachable, stubbing: ${error}`);
33
- await route.fulfill({
34
- status: 200,
35
- contentType: 'text/html',
36
- body: '<html><body></body></html>',
37
- });
38
- }
28
+ await route.fulfill({
29
+ status: 200,
30
+ contentType: 'text/html',
31
+ body: '<html><body></body></html>',
32
+ });
39
33
  };
40
34
  await context.route(matchesLink, handler);
41
35
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1280",
3
+ "version": "0.0.1281",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",