nightwatch
nightwatch copied to clipboard
Add support for using JSX in Nightwatch component tests
We need to be able to use JSX in tests, e.g.:
import someHandler from './someHandler.js'
import {Button} from './Template.jsx'
describe('example test', function() {
it('renders <Button/>', function(browser) {
browser
.render(<Button onClick={someHandler} />)
.assert.visile('button')
}
})
Thank you for setting this as an enhancement. One of the product folk will triage this again to help see when we can fit this in an upcoming sprint.