Closed bbonczek closed 5 years ago
Hi @bbonczek,
I have never tried using testcafe with electron. But since gherkin-testcafe is just a wrapper around testcafe and just passes on browser options to testcafe, it should be working just as it is described with the provider. Have you tried running some "native" testcafe test with your setup?
Hello,
sorry for late response. We managed to make it work using this: .testcafe-electron-rc:
{
"mainWindowUrl": "dist/app/packages/app-win32-ia32/resources/app/index.html",
"electronPath": "dist/app/packages/app-win32-ia32/app"
}
config.js:
module.exports = {
welcomePage: "file:///" + process.cwd() + "/dist/app/packages/app-win32-ia32/resources/app/index.html"
};
Is it currently supported to test electron executable files as decribed in here?
Gherkin-testcafe is capable of running executable files, however seems like it's not possible to use mainWindowUrl property , to navigate to correct page.
My .testcafe-electron-rc file looks like this:
{ "mainWindowUrl": "dist/app/packages/app-win32-ia32/resources/app/index.html", "electronPath": "dist/app/packages/app-win32-ia32/app" }