mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
remove wallet setup from Cypress
This commit is contained in:
parent
4ee5f19a9a
commit
01fb305612
1333
client/package-lock.json
generated
1333
client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -39,7 +39,7 @@
|
||||
"react-popper": "^1.3.3",
|
||||
"react-router-dom": "^5.0.1",
|
||||
"react-transition-group": "^4.1.1",
|
||||
"truffle-hdwallet-provider": "1.0.5",
|
||||
"truffle-hdwallet-provider": "^1.0.13",
|
||||
"web3": "1.0.0-beta.37"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,8 +1,6 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:3000",
|
||||
"env": {
|
||||
"NODE_URI": "https://pacific.oceanprotocol.com",
|
||||
"SEEDPHRASE": "taxi music thumb unique chat sand crew more leg another off lamp",
|
||||
"CONSUME_ASSET": "did:op:8f0086cf21e84389ad69b3272c56bd0ddc12cd7d98db4e02b4075c481fc2d32d"
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,3 @@
|
||||
/// <reference types="Cypress" />
|
||||
import Web3 from 'web3'
|
||||
import HDWalletProvider from 'truffle-hdwallet-provider'
|
||||
|
||||
before(function() {
|
||||
cy.on('window:before:load', win => {
|
||||
const provider = new HDWalletProvider(
|
||||
Cypress.env('SEEDPHRASE'),
|
||||
Cypress.env('NODE_URI')
|
||||
)
|
||||
win.web3 = new Web3(provider)
|
||||
win.ethereum = win.web3
|
||||
})
|
||||
})
|
||||
before(function() {})
|
||||
|
2084
package-lock.json
generated
2084
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -24,10 +24,7 @@
|
||||
"cypress:run": "cypress run --browser chrome",
|
||||
"cypress:open": "cypress open"
|
||||
},
|
||||
"dependencies": {
|
||||
"truffle-hdwallet-provider": "^1.0.10",
|
||||
"web3": "1.0.0-beta.37"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@release-it/bumper": "^1.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^1.11.0",
|
||||
|
Loading…
Reference in New Issue
Block a user