Commit ade5cbba authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

add circleci support

parent 8de6bda1
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11.2
steps:
- checkout
- run: npm install
- run: npm run build
test:
docker:
- image: circleci/node:8.11.2
steps:
- checkout
- run: sh ./tests/fix_puppeteer.sh
- run: npm install
- run: npm run test:all
workflows:
version: 2
build_and_test:
jobs:
- build
- test
\ No newline at end of file
......@@ -17,6 +17,9 @@ describe('Login', () => {
afterEach(() => page.close());
it('should login with failure', async () => {
await page.waitForSelector('#userName', {
timeout: 2000,
});
await page.type('#userName', 'mockuser');
await page.type('#password', 'wrong_password');
await page.click('button[type="submit"]');
......@@ -24,6 +27,9 @@ describe('Login', () => {
});
it('should login successfully', async () => {
await page.waitForSelector('#userName', {
timeout: 2000,
});
await page.type('#userName', 'admin');
await page.type('#password', '888888');
await page.click('button[type="submit"]');
......
#!/bin/bash
apt-get update
apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment