Open kof opened 7 years ago
@kof Thanks for your report. Can you show me the minimum project to reproduce it?
npm i && npm test
All my code is basically this:
import expect from 'expect.js'
// Throws here.
import 'nightmare'
describe('test', () => {
it('should pass', () => {
expect(true).to.be(true)
})
})
@kof Thanks!!
Or actually its even simpler, can you make an example how to navigate to pages with nightmare.goto()
from the tests?
You can not use nighhtmare.goto
on karma. Because karma test is running on renderer pocess
on Electron.If you want to use nightmare.goto()
, please use nightmare
and e.g mocha without karma.
Yeah, but that would be cool.
I'm using karma-nightmare version [0.4.8]
Description
I am struggling to understand how this should work with goto(url), meaning I need to open a url and then run nightmare actions on that page.
Any help is welcome.
Right now as soon as I
require('nightmare')
, I get errors like this