Skip to content

Commit

Permalink
Added webdriverio integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b4handjr authored and dannycoates committed Oct 3, 2018
1 parent bd02b7d commit 23d629b
Show file tree
Hide file tree
Showing 40 changed files with 18,667 additions and 12,015 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
["env", {
"targets": {
"node": "current"
}
}]
]
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ dist
assets
firefox
coverage
test/integration
test/wdio.*
7 changes: 0 additions & 7 deletions .pyup.yml

This file was deleted.

17 changes: 13 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- persist_to_workspace:
root: .
paths:
- ./dist
- ./*
test:
docker:
- image: circleci/node:10-browsers
Expand Down Expand Up @@ -46,9 +46,18 @@ jobs:
pip install docker-compose>=1.18
docker-compose --version
- run:
command: npm run test-integration
- store_artifacts:
path: coverage/send-test.html
name: Setup
command: |
set -x
docker-compose pull
- run:
name: Run Integration tests
command: |
set -x
docker-compose up -d selenium-firefox
sleep 10
docker-compose ps
docker-compose exec selenium-firefox npm run test-circle:selenium
deploy_dev:
machine: true
steps:
Expand Down
11 changes: 2 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@ services:
- REDIS_HOST=redis
redis:
image: redis:alpine
selenium:
selenium-firefox:
image: b4handjr/selenium-firefox
ports:
- "${VNC_PORT:-5900}:5900"
shm_size: 2g
integration-tests:
build: ./test/integration
environment:
- BASE_URL=${BASE_URL:-http://web:1443}
links:
- web
- selenium
volumes:
- "./coverage:/coverage"
- .:/code
Loading

0 comments on commit 23d629b

Please sign in to comment.