Skip to content

Commit

Permalink
Merge branch 'adding-nodejs-tests' of https://github.com/adlnet/ADL_LRS
Browse files Browse the repository at this point in the history
… into adding-nodejs-tests
  • Loading branch information
adl-trey committed May 10, 2024
2 parents 56ad6da + 692eb24 commit 7bd690b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
sudo docker-compose up -d
echo 'deployed successfully on server' "
- name: Check the deployed service URL
uses: jtalk/url-health-check-action@v4
with:
url: ${{ secrets.ADLNET_STAGING_LRS_HOST_URL }}
max-attempts: 10
retry-delay: 10s

cypress-testing:
name: Cypress run
environment: staging
Expand All @@ -42,10 +49,13 @@ jobs:
LRS_PASSWORD: ${{ secrets.ADLNET_STAGING_LRS_PASSWORD }}
LRS_HOST_URL: ${{ secrets.ADLNET_STAGING_LRS_HOST_URL }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cypress run
uses: cypress-io/github-action@v6
with:
working-directory: tests/cypress
working-directory: ./tests/cypress

conformance-testing:
runs-on: ubuntu-latest
Expand All @@ -64,7 +74,7 @@ jobs:
owner: adlnet
repository: lrs-conformance-test-suite
depth: 1
branch: master
branch: adding-back-compat

- name: Run LRS Conformance Suite
run: |
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/e2e/login.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ describe("Logged-In Behavior", () => {

it("Allows Admin to Log In.", () => {

let adminName = Cypress.env("LRS_ADMIN_NAME");
let adminPass = Cypress.env("LRS_ADMIN_PASS");
let adminName = Cypress.env("LRS_USERNAME");
let adminPass = Cypress.env("LRS_PASSWORD");

cy.get('#menuLink1').click();

Expand Down

0 comments on commit 7bd690b

Please sign in to comment.