Replies: 1 comment 1 reply
-
It is still a requirement if you like to tap into the application runtime for mocking or just executing scripts. We will soon release an interface that allows you to mock as following: const mock = await browser.electron.mock('dialog', '...')
// click on a button that causes a dialog to pop up
await expect(mock).toHaveBeenCalledTimes(1) If you don't need any of that you don't need to import the scripts. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is probably most a question to Christian after watching the quick tutorial on setting up Electron e2e test.
Before I read several places, and saw in example code that it was required to call require('wdio-electron-service/[main|preload]'); in main and preload for testing if in development mode.
But in the youtube tut. you don't mention this and testing seems to work fine.
So is this a requirement of the past?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions