@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
|
-
//
|
|
20
|
-
//
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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 {
|