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_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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user