Skip to content

Commit

Permalink
Adding cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Aug 20, 2021
1 parent 547c8e8 commit 9bab9fe
Show file tree
Hide file tree
Showing 7 changed files with 4,185 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,35 @@ jobs:
wait-for-it localhost:8000 # jupyterhub
wait-for-it localhost:5000 # conda-store-server
### CYPRESS TESTS
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: npm version
run: |
npm --version
- name: Install Cypress dependencies
run: |
sudo apt-get -y update
sudo apt-get install -y \
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev \
libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- name: Cypress run
uses: cypress-io/github-action@v2
env:
CYPRESS_BASE_URL: https://localhost:5000/
with:
working-directory: tests/e2e/
- name: Save Cypress screenshots and videos
if: always()
uses: actions/upload-artifact@v2
with:
name: e2e-cypress
path: |
./tests/e2e/cypress/screenshots/
./tests/e2e/cypress/videos/
test-conda-store:
name: 'Test conda-store'
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 2 additions & 0 deletions tests/e2e/cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
3 changes: 3 additions & 0 deletions tests/e2e/cypress/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cypress/videos/
cypress/screenshots/
fixtures/
5 changes: 5 additions & 0 deletions tests/e2e/cypress/integration/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('First Test', () => {
it('Check conda-store home page', () => {
cy.visit('http://localhost:8000/hub/home');
})
})
Loading

0 comments on commit 9bab9fe

Please sign in to comment.