Skip to content

Commit

Permalink
Adjust env names to work on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Sep 19, 2023
1 parent 195f92c commit 4671c84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ jobs:
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
env:
CYPRESS_USER_EMAIL: ${{ secrets.CYPRESS_USER_EMAIL }}
CYPRESS_USER_PASSWORD: ${{ secrets.CYPRESS_USER_PASSWORD }}
4 changes: 2 additions & 2 deletions cypress.env.example.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"userEmail": "[email protected]",
"userPassword": "5ecR37-P@sSw0Rd"
"USER_EMAIL": "[email protected]",
"USER_PASSWORD": "5ecR37-P@sSw0Rd"
}
4 changes: 2 additions & 2 deletions cypress/e2e/loginForm.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ beforeEach(() => {
})

it('successfully logs in', () => {
const email = Cypress.env('userEmail')
const password = Cypress.env('userPassword')
const email = Cypress.env('USER_EMAIL')
const password = Cypress.env('USER_PASSWORD')

cy.dataTest('email-field').type(email)
cy.dataTest('password-field').type(password, { log: false })
Expand Down

0 comments on commit 4671c84

Please sign in to comment.