testaro 53.0.7 → 53.0.9
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/package.json +1 -1
- package/run.js +4 -6
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -875,6 +875,9 @@ const doActs = async (report) => {
|
|
|
875
875
|
act.actualURL = url;
|
|
876
876
|
// If the act is a revelation:
|
|
877
877
|
if (act.type === 'reveal') {
|
|
878
|
+
act.result = {
|
|
879
|
+
success: true
|
|
880
|
+
};
|
|
878
881
|
// Make all elements in the page visible.
|
|
879
882
|
await page.$$eval('body *', elements => {
|
|
880
883
|
elements.forEach(element => {
|
|
@@ -886,15 +889,10 @@ const doActs = async (report) => {
|
|
|
886
889
|
element.style.visibility = 'inherit';
|
|
887
890
|
}
|
|
888
891
|
});
|
|
889
|
-
act.result = {
|
|
890
|
-
success: true
|
|
891
|
-
};
|
|
892
892
|
})
|
|
893
893
|
.catch(error => {
|
|
894
894
|
console.log(`ERROR making all elements visible (${error.message})`);
|
|
895
|
-
act.result =
|
|
896
|
-
success: false
|
|
897
|
-
};
|
|
895
|
+
act.result.success = false;
|
|
898
896
|
});
|
|
899
897
|
}
|
|
900
898
|
// Otherwise, if the act is a move:
|