nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
10 lines (8 loc) • 317 B
text/typescript
import { NightwatchTests } from '..';
const componentTesting: NightwatchTests = {
'Demo component testing': () => {
const reactComponent = browser.mountReactComponent('react.tsx');
browser.expect.element(reactComponent).to.be.present;
browser.expect.element('h1').text.to.equal('Hello World');
},
};