aboutsummaryrefslogtreecommitdiff
path: root/src/tests/e2e
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-01-04 00:48:34 +0900
committerPitu <[email protected]>2021-01-04 00:48:34 +0900
commitb77c0a57cc089a554ee874ae9ff5ff53e6b5eb99 (patch)
tree3f53f464b09a439958389bbd3652ebb66b33a4af /src/tests/e2e
parentUpdate migration (diff)
downloadhost.fuwn.me-b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99.tar.xz
host.fuwn.me-b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99.zip
feat: add testing capabilities
Diffstat (limited to 'src/tests/e2e')
-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();
+});