You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to e.g. the input script 'test'==='test'; throwing a Javascript error: SyntaxError: Unexpected token ';'. Expected ')' to end an argument list. as the code to be executed looks like this: eval('test'==='test';) which is obviously invalid syntax.
To fix this, the condition_js needs to be quoted properly.
The text was updated successfully, but these errors were encountered:
Hi @schloerke,
opening this back up because I found a bug where an object of class glue, character passed as the condition_js argument to wait_for_js will produce an error.
The
eval()
call in thechromote_wait_for_condition
function is essentially a NOP instruction as thecondition_js
script is not quoted:shinytest2/R/chromote-methods.R
Line 105 in 61d51d9
This leads to e.g. the input script
'test'==='test';
throwing a Javascript error:SyntaxError: Unexpected token ';'. Expected ')' to end an argument list.
as the code to be executed looks like this:eval('test'==='test';)
which is obviously invalid syntax.To fix this, the
condition_js
needs to be quoted properly.The text was updated successfully, but these errors were encountered: