nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

Add support for using JSX in Nightwatch component tests

Open AutomatedTester opened this issue 3 years ago • 1 comments

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')
  }
})

AutomatedTester avatar Sep 05 '22 21:09 AutomatedTester

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.

github-actions[bot] avatar Sep 13 '22 10:09 github-actions[bot]