mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
cypress env variables
This commit is contained in:
parent
67f736809b
commit
0ef8a88d30
@ -22,6 +22,7 @@ script:
|
|||||||
- export REACT_APP_SECRET_STORE_URI="https://secret-store.pacific.oceanprotocol.com"
|
- 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_FAUCET_URI="https://faucet.pacific.dev-ocean.com"
|
||||||
- export REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea"
|
- 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_SEEDPHRASE="taxi music thumb unique chat sand crew more leg another off lamp"
|
||||||
- export CYPRESS_CONSUME_ASSET="http://localhost:3000/asset/did:op:d64dd31f8d2a4fc0987fedc7a2e4a07be049b9b814434b61989ab0e3a1a443e1"
|
- export CYPRESS_CONSUME_ASSET="http://localhost:3000/asset/did:op:d64dd31f8d2a4fc0987fedc7a2e4a07be049b9b814434b61989ab0e3a1a443e1"
|
||||||
- ./scripts/test.sh
|
- ./scripts/test.sh
|
||||||
|
@ -6,14 +6,14 @@ context('Consume', () => {
|
|||||||
before(() => {
|
before(() => {
|
||||||
cy.on('window:before:load', win => {
|
cy.on('window:before:load', win => {
|
||||||
const provider = new HDWalletProvider(
|
const provider = new HDWalletProvider(
|
||||||
process.env.CYPRESS_SEEDPHRASE,
|
Cypress.env('SEEDPHRASE'),
|
||||||
process.env.REACT_APP_NODE_URI
|
Cypress.env('NODE_URI')
|
||||||
)
|
)
|
||||||
win.web3 = new Web3(provider)
|
win.web3 = new Web3(provider)
|
||||||
win.ethereum = win.web3
|
win.ethereum = win.web3
|
||||||
})
|
})
|
||||||
|
|
||||||
cy.visit(process.env.CYPRESS_CONSUME_ASSET)
|
cy.visit(Cypress.env('CONSUME_ASSET'))
|
||||||
|
|
||||||
// Wait for end of loading
|
// Wait for end of loading
|
||||||
cy.get('button', { timeout: 60000 }).should('have.length', 1)
|
cy.get('button', { timeout: 60000 }).should('have.length', 1)
|
||||||
|
@ -6,8 +6,8 @@ context('Faucet', () => {
|
|||||||
before(() => {
|
before(() => {
|
||||||
cy.on('window:before:load', win => {
|
cy.on('window:before:load', win => {
|
||||||
const provider = new HDWalletProvider(
|
const provider = new HDWalletProvider(
|
||||||
process.env.CYPRESS_SEEDPHRASE,
|
Cypress.env('SEEDPHRASE'),
|
||||||
process.env.REACT_APP_NODE_URI
|
Cypress.env('NODE_URI')
|
||||||
)
|
)
|
||||||
win.web3 = new Web3(provider)
|
win.web3 = new Web3(provider)
|
||||||
win.ethereum = win.web3
|
win.ethereum = win.web3
|
||||||
|
@ -6,8 +6,8 @@ context('Publish', () => {
|
|||||||
before(() => {
|
before(() => {
|
||||||
cy.on('window:before:load', win => {
|
cy.on('window:before:load', win => {
|
||||||
const provider = new HDWalletProvider(
|
const provider = new HDWalletProvider(
|
||||||
process.env.CYPRESS_SEEDPHRASE,
|
Cypress.env('SEEDPHRASE'),
|
||||||
process.env.REACT_APP_NODE_URI
|
Cypress.env('NODE_URI')
|
||||||
)
|
)
|
||||||
win.web3 = new Web3(provider)
|
win.web3 = new Web3(provider)
|
||||||
win.ethereum = win.web3
|
win.ethereum = win.web3
|
||||||
|
@ -6,8 +6,8 @@ context('Search', () => {
|
|||||||
before(() => {
|
before(() => {
|
||||||
cy.on('window:before:load', win => {
|
cy.on('window:before:load', win => {
|
||||||
const provider = new HDWalletProvider(
|
const provider = new HDWalletProvider(
|
||||||
process.env.CYPRESS_SEEDPHRASE,
|
Cypress.env('SEEDPHRASE'),
|
||||||
process.env.REACT_APP_NODE_URI
|
Cypress.env('NODE_URI')
|
||||||
)
|
)
|
||||||
win.web3 = new Web3(provider)
|
win.web3 = new Web3(provider)
|
||||||
win.ethereum = win.web3
|
win.ethereum = win.web3
|
||||||
|
Loading…
Reference in New Issue
Block a user