mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
22 lines
460 B
JavaScript
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
|
|
);
|