Need to cancel existing search request when filter changes #391
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: End-to-end tests | |
on: [push] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-16.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 8.17.0 | |
- run: npm run test:e2e:api:start | |
- name: Cypress run | |
uses: cypress-io/github-action@v1 | |
env: | |
CYPRESS_auth_base_url: 'https://sso-dev.pathfinder.gov.bc.ca/auth' | |
CYPRESS_auth_realm: range | |
CYPRESS_auth_client_id: myrangebc | |
CYPRESS_range_officer_username: ${{ secrets.RANGE_OFFICER_USERNAME }} | |
CYPRESS_range_officer_password: ${{ secrets.RANGE_OFFICER_PASSWORD }} | |
CYPRESS_BASE_URL: http://localhost:3000 | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_PROJECT_KEY }} | |
REACT_APP_API_URL: http://localhost:8081/api | |
with: | |
start: npm start | |
wait-on: 'http://localhost:3000' | |
wait-on-timeout: 500 | |
record: true |