blob: ca45efdd81dfefc00b2cb4b151ef5353e41c947b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* eslint-disable no-undef */
const puppeteer = require('puppeteer');
test('Check the logo renders', async () => {
const browser = await puppeteer.launch({
headless: true
});
const page = await browser.newPage();
await page.goto('http://localhost:5000', {
timeout: 45000,
waitUntil: ['networkidle2']
});
// Check the logo exists
const logo = await page.waitForSelector('.logoContainer');
await browser.close();
expect(logo).toBeTruthy();
});
|