Set environment variable in the secrets to access the connection string in the secrets folder

This commit is contained in:
Ashwin Kumar M
2020-06-05 18:41:05 -07:00
parent aa8236666e
commit 02cfe0945e
2 changed files with 131 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ module.exports = {
.last()
.click({ force: true });
const secret = Cypress.env('connectionString')[api];
const secret = Cypress.env(`CONNECTION_STRING_${api && api.toUpperCase()}`);
cy.wrap($body)
.find("input[class='inputToken']")