1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

faucet fix + button test, consume inc timeout

This commit is contained in:
Jernej Pregelj 2019-06-20 11:55:16 +02:00
parent e60ca7b941
commit 406e039ad8
2 changed files with 8 additions and 2 deletions

View File

@ -28,7 +28,7 @@ context('Consume', () => {
// Click consume button
cy.get('button').click()
// Wait consume process to end
cy.get('button', { timeout: 60000 }).should('contain', 'Get file')
cy.get('button', { timeout: 120000 }).should('contain', 'Get file')
// check if there is no error
cy.get('article>div').should(
'not.contain',

View File

@ -7,7 +7,7 @@ context('Faucet', () => {
cy.on('window:before:load', win => {
const provider = new HDWalletProvider(
'taxi music thumb unique chat sand crew more leg another off lamp',
'http://localhost:8545'
'https://nile.dev-ocean.com'
)
win.web3 = new Web3(provider)
win.ethereum = win.web3
@ -18,6 +18,12 @@ context('Faucet', () => {
cy.get('button', { timeout: 20000 }).should('have.length', 1)
})
it('Faucet button is clickable when user is connected.', () => {
cy.get('button')
.contains('Request Ether')
.should('not.be.disabled')
})
it('Execute faucet call', () => {
// Execute call
cy.get('button')