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

fix cypress test

This commit is contained in:
Jernej Pregelj 2019-07-12 12:08:10 +02:00
parent 3518abab26
commit 9c47ed2183

View File

@ -21,9 +21,12 @@ context('Consume', () => {
it('Consume asset and check if there is no error', () => {
// Click consume button
cy.get('@button').click()
cy.get('button[name="Download"]').click()
// Wait consume process to end
cy.get('@button', { timeout: 150000 }).should('contain', 'Get file')
cy.get('button[name="Download"]', { timeout: 150000 }).should(
'contain',
'Get file'
)
// check if there is no error
cy.get('article>div').should(
'not.contain',