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
Give your testscript the same name as your test experiment, for example e2e_img.cjs
Save your testscript in same directory as where your test experiment is: ./test/tests_e2e
Have your testscript import ../shared/SharedBehaviors.cjs
The testing testscript should be a CommonJS module that exports a function run which accepts one argument: calibration
Available features
Inside of your testscript, you've got the following features at your disposal:
The WebDriverIO API for sending commands to a web-browser. Since PsychoJS draws stimuli via a canvas, most functions for element selection can't be used, but function of the browser object can be used.