Skip to content

Commit eb94049

Browse files
committed
takeScreenshot() now works as it should
1 parent 5c717da commit eb94049

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nr_synthetics_formatter/nr-synthetics.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,12 @@ lineForType: {
208208
"deleteCookie":
209209
function(step) { return scriptify(step.id, "browser.deleteCookie(\"" + step.name + "\")"); },
210210
"saveScreenshot":
211-
function(step) { return scriptify(step.id, "$browser.takeScreenshot()"); },
211+
function(step) { return commentstep(adjuststep(step.id)) +
212+
".then(function () {\n" +
213+
" log(" + adjuststep(step.id) + ", '$browser.takeScreenshot()');\n" +
214+
" $browser.takeScreenshot();\n" +
215+
"})\n\n";
216+
},
212217
},
213218
waitFor: function(step, escapeValue, doSubs, getter) {
214219
if (step.negated) {

0 commit comments

Comments
 (0)