1 | import { NightwatchTests } from '..';
|
2 |
|
3 | const componentTesting: NightwatchTests = {
|
4 | 'Demo component testing': () => {
|
5 | const reactComponent = browser.mountReactComponent('react.tsx');
|
6 | browser.expect.element(reactComponent).to.be.present;
|
7 | browser.expect.element('h1').text.to.equal('Hello World');
|
8 | },
|
9 | };
|