diff --git a/.travis.yml b/.travis.yml index f9769f4..01a51e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ script: - export REACT_APP_SECRET_STORE_URI="https://secret-store.pacific.oceanprotocol.com" - export REACT_APP_FAUCET_URI="https://faucet.pacific.dev-ocean.com" - export REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea" + - export CYPRESS_NODE_URI=REACT_APP_NODE_URI - export CYPRESS_SEEDPHRASE="taxi music thumb unique chat sand crew more leg another off lamp" - export CYPRESS_CONSUME_ASSET="http://localhost:3000/asset/did:op:d64dd31f8d2a4fc0987fedc7a2e4a07be049b9b814434b61989ab0e3a1a443e1" - ./scripts/test.sh diff --git a/cypress/integration/consume.spec.js b/cypress/integration/consume.spec.js index 7c9a27d..a66a364 100644 --- a/cypress/integration/consume.spec.js +++ b/cypress/integration/consume.spec.js @@ -6,14 +6,14 @@ context('Consume', () => { before(() => { cy.on('window:before:load', win => { const provider = new HDWalletProvider( - process.env.CYPRESS_SEEDPHRASE, - process.env.REACT_APP_NODE_URI + Cypress.env('SEEDPHRASE'), + Cypress.env('NODE_URI') ) win.web3 = new Web3(provider) win.ethereum = win.web3 }) - cy.visit(process.env.CYPRESS_CONSUME_ASSET) + cy.visit(Cypress.env('CONSUME_ASSET')) // Wait for end of loading cy.get('button', { timeout: 60000 }).should('have.length', 1) diff --git a/cypress/integration/faucet.spec.js b/cypress/integration/faucet.spec.js index ea97691..4ff018f 100644 --- a/cypress/integration/faucet.spec.js +++ b/cypress/integration/faucet.spec.js @@ -6,8 +6,8 @@ context('Faucet', () => { before(() => { cy.on('window:before:load', win => { const provider = new HDWalletProvider( - process.env.CYPRESS_SEEDPHRASE, - process.env.REACT_APP_NODE_URI + Cypress.env('SEEDPHRASE'), + Cypress.env('NODE_URI') ) win.web3 = new Web3(provider) win.ethereum = win.web3 diff --git a/cypress/integration/publish.spec.js b/cypress/integration/publish.spec.js index 23e563a..b0af350 100644 --- a/cypress/integration/publish.spec.js +++ b/cypress/integration/publish.spec.js @@ -6,8 +6,8 @@ context('Publish', () => { before(() => { cy.on('window:before:load', win => { const provider = new HDWalletProvider( - process.env.CYPRESS_SEEDPHRASE, - process.env.REACT_APP_NODE_URI + Cypress.env('SEEDPHRASE'), + Cypress.env('NODE_URI') ) win.web3 = new Web3(provider) win.ethereum = win.web3 diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 94d1f8a..fc490dd 100644 --- a/cypress/integration/search.spec.js +++ b/cypress/integration/search.spec.js @@ -6,8 +6,8 @@ context('Search', () => { before(() => { cy.on('window:before:load', win => { const provider = new HDWalletProvider( - process.env.CYPRESS_SEEDPHRASE, - process.env.REACT_APP_NODE_URI + Cypress.env('SEEDPHRASE'), + Cypress.env('NODE_URI') ) win.web3 = new Web3(provider) win.ethereum = win.web3