aboutsummaryrefslogtreecommitdiff
path: root/src/tests/e2e/index.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/e2e/index.test.js')
-rw-r--r--src/tests/e2e/index.test.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/e2e/index.test.js b/src/tests/e2e/index.test.js
new file mode 100644
index 0000000..ca45efd
--- /dev/null
+++ b/src/tests/e2e/index.test.js
@@ -0,0 +1,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();
+});