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:
parent
e60ca7b941
commit
406e039ad8
@ -28,7 +28,7 @@ context('Consume', () => {
|
|||||||
// Click consume button
|
// Click consume button
|
||||||
cy.get('button').click()
|
cy.get('button').click()
|
||||||
// Wait consume process to end
|
// 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
|
// check if there is no error
|
||||||
cy.get('article>div').should(
|
cy.get('article>div').should(
|
||||||
'not.contain',
|
'not.contain',
|
||||||
|
@ -7,7 +7,7 @@ context('Faucet', () => {
|
|||||||
cy.on('window:before:load', win => {
|
cy.on('window:before:load', win => {
|
||||||
const provider = new HDWalletProvider(
|
const provider = new HDWalletProvider(
|
||||||
'taxi music thumb unique chat sand crew more leg another off lamp',
|
'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.web3 = new Web3(provider)
|
||||||
win.ethereum = win.web3
|
win.ethereum = win.web3
|
||||||
@ -18,6 +18,12 @@ context('Faucet', () => {
|
|||||||
cy.get('button', { timeout: 20000 }).should('have.length', 1)
|
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', () => {
|
it('Execute faucet call', () => {
|
||||||
// Execute call
|
// Execute call
|
||||||
cy.get('button')
|
cy.get('button')
|
||||||
|
Loading…
Reference in New Issue
Block a user