Files
nebula.js/test/e2e-cli/sn.spec.js
2019-04-18 16:13:17 +02:00

13 lines
422 B
JavaScript

describe('sn', () => {
const content = '.nebulajs-sn';
it('should say hello', async () => {
const app = encodeURIComponent(process.env.APP_ID || '/apps/ctrl00.qvf');
await page.goto(`http://localhost:8085/render/app/${app}`);
await page.waitForSelector(content, {
timeout: 5000,
});
const text = await page.$eval(content, el => el.textContent);
expect(text).to.equal('Hello!');
});
});