@lvce-editor/test-worker 5.18.0 → 5.20.0
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/testWorkerMain.js +3 -0
- package/package.json +1 -1
package/dist/testWorkerMain.js
CHANGED
|
@@ -1113,6 +1113,8 @@ const now = () => {
|
|
|
1113
1113
|
return performance.now();
|
|
1114
1114
|
};
|
|
1115
1115
|
|
|
1116
|
+
// TODO make this code more functional, returning a test result
|
|
1117
|
+
// and a separate function prints out the test result
|
|
1116
1118
|
const executeTest = async (name, fn, globals = {}) => {
|
|
1117
1119
|
let _error;
|
|
1118
1120
|
let _start;
|
|
@@ -3546,6 +3548,7 @@ const fromId = async webViewId => {
|
|
|
3546
3548
|
return {
|
|
3547
3549
|
locator(selector, options) {
|
|
3548
3550
|
const baseLocator = create(selector, options);
|
|
3551
|
+
// @ts-ignore
|
|
3549
3552
|
baseLocator.webViewId = webViewId;
|
|
3550
3553
|
return baseLocator;
|
|
3551
3554
|
}
|