From 7ba5ee7e0897deb0b7afa6c69b2c5b4459b9b118 Mon Sep 17 00:00:00 2001 From: Walmyr Date: Wed, 17 Jan 2024 22:54:28 +0100 Subject: [PATCH] Uppercase cypress env variable name Since on GitHub Actions secrets, they are always uppercase. --- cypress.env.example.json | 2 +- cypress/e2e/playground.cy.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress.env.example.json b/cypress.env.example.json index b9ef2cc..3724d92 100644 --- a/cypress.env.example.json +++ b/cypress.env.example.json @@ -1,3 +1,3 @@ { - "password": "your-secret-password-here" + "PASSWORD": "your-secret-password-here" } \ No newline at end of file diff --git a/cypress/e2e/playground.cy.js b/cypress/e2e/playground.cy.js index 67e70ee..95e3f21 100644 --- a/cypress/e2e/playground.cy.js +++ b/cypress/e2e/playground.cy.js @@ -158,14 +158,14 @@ describe('Cypress Playground', () => { it('types a password without leaking it, shows it, and hides it again', () => { cy.get('#password-input input[type="password"]') - .type(Cypress.env('password'), { log: false }) + .type(Cypress.env('PASSWORD'), { log: false }) cy.get('#password-input input[type="checkbox"').check() cy.get('#password-input input[type="password"]').should('not.exist') cy.get('#password-input input[type="text"]') .should('be.visible') - .and('have.value', Cypress.env('password')) + .and('have.value', Cypress.env('PASSWORD')) cy.get('#password-input input[type="checkbox"').uncheck()