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
I am looking to set up custom tasks to execute server-side functions before my tests (such as reset and seed database). I tried adding custom plugins as suggested in #346 but it only concerns Cypress.Commands, not tasks.
To set custom tasks, one should set a plugins.js with
however, the function on('task', ...) is already called inside @synthetixio/synpress/plugins/index.js, and calling it again in plugins.js does not seem to change anything.
What am I missing?
Thanks in advance
The text was updated successfully, but these errors were encountered:
For those having the same issue, I found a workaround by using patch-package, and include the missing tasks I need directly in @synthetixio/synpress/plugins/index.js file. It's not great, so any more elegant solution will be welcome.
Hi,
I am looking to set up custom tasks to execute server-side functions before my tests (such as reset and seed database). I tried adding custom plugins as suggested in #346 but it only concerns Cypress.Commands, not tasks.
To set custom tasks, one should set a
plugins.js
withhowever, the function
on('task', ...)
is already called inside@synthetixio/synpress/plugins/index.js
, and calling it again inplugins.js
does not seem to change anything.What am I missing?
Thanks in advance
The text was updated successfully, but these errors were encountered: