0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/e2e/e2e.spec.js
Juan Picado @jotadeveloper 780874ece9
test: add husky and lint
2018-02-08 23:25:18 +01:00

22 lines
460 B
JavaScript

const timeout = 5000;
describe('/ (Home Page)', () => {
let page;
beforeAll(async () => {
page = await global.__BROWSER__.newPage();
await page.goto('https://google.com');
}, timeout);
afterAll(async () => {
await page.close()
});
it('should load without error', async () => {
let text = await page.evaluate(() => document.body.textContent);
expect(text).toContain('google');
})
},
timeout
);