mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
25 lines
465 B
JavaScript
25 lines
465 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
|
|
);
|