ui5-test-runner 6.0.2 → 6.0.4
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.
- package/dist/Npm.js +3 -0
- package/dist/browsers/playwright.js +1 -1
- package/dist/browsers/puppeteer.js +1 -1
- package/package.json +1 -1
package/dist/Npm.js
CHANGED
|
@@ -73,6 +73,9 @@ export class Npm {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
static async tryImportFromPath(configuration, moduleName, nodeModulesPath) {
|
|
76
|
+
if (this.tryResolvePackageDir(this.packageNameOf(moduleName), nodeModulesPath) === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
76
79
|
try {
|
|
77
80
|
const require = Module.createRequire(`${Url.pathToFileURL(configuration.cwd).href}/`);
|
|
78
81
|
const resolved = require.resolve(moduleName, { paths: [nodeModulesPath] });
|
|
@@ -83,7 +83,7 @@ export const factory = async (configuration, signal) => {
|
|
|
83
83
|
const request = response.request();
|
|
84
84
|
handleNetworkResponse(pageId, request.url(), request.method(), response.status(), request.headers(), response.headers());
|
|
85
85
|
});
|
|
86
|
-
await page.goto(settings.url);
|
|
86
|
+
await page.goto(settings.url, { waitUntil: 'domcontentloaded' });
|
|
87
87
|
return {
|
|
88
88
|
async eval(script) {
|
|
89
89
|
return await page?.evaluate(script);
|
|
@@ -104,7 +104,7 @@ export const factory = async (configuration, signal) => {
|
|
|
104
104
|
password: basicAuthentication.password.reveal()
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
await page?.goto(settings.url);
|
|
107
|
+
await page?.goto(settings.url, { waitUntil: 'domcontentloaded' });
|
|
108
108
|
return {
|
|
109
109
|
async eval(script) {
|
|
110
110
|
return await page?.evaluate(script);
|