Skip to content

Commit

Permalink
environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rdgon committed Mar 19, 2024
1 parent e985836 commit eccdf5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
environment: dev
env:
TESTUSER_PWD: ${{ secrets.SC_TESTUSER_PWD }}
CYPRESS_TESTUSER_PWD: ${{ secrets.SC_TESTUSER_PWD }}
steps:
- name: check out repostitory
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Cypress.Commands.add('customer_login', (customername,
.type(customername);
cy.get('input#password')
.waitUntilDomAttached()
.type(Process.env.TESTUSER_PWD);
.type(Cypress.env( 'TESTUSER_PWD'));
cy.get('button').contains('Log in').click().then (() => {
if (accountname) {
cy.get(`p-dropdown#account`).click().then (() => {
Expand Down

0 comments on commit eccdf5d

Please sign in to comment.