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

Merge pull request #185 from oceanprotocol/fix/cypress-consume

Fix faucet on consume, publish category warning
This commit is contained in:
Jernej Pregelj 2019-08-05 12:47:34 +02:00 committed by GitHub
commit db6b53257f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,7 @@ interface PublishState {
files?: File[]
type?: AssetType
copyrightHolder?: string
categories?: string[]
categories?: string
currentStep?: number
publishingStep?: number
@ -60,7 +60,7 @@ class Publish extends Component<{}, PublishState> {
type: 'dataset' as AssetType,
license: '',
copyrightHolder: '',
categories: [],
categories: '',
currentStep: 1,
isPublishing: false,
@ -130,7 +130,7 @@ class Publish extends Component<{}, PublishState> {
type: 'dataset' as AssetType,
license: '',
copyrightHolder: '',
categories: [],
categories: '',
isPublishing: false,
isPublished: false,
publishingStep: 0,

View File

@ -16,6 +16,9 @@ context('Consume', () => {
})
it('Consume asset and check if there is no error', () => {
// eslint-disable-next-line
cy.wait(10000)
// Wait for faucet
// Click consume button
cy.get('button[name="Download"]').click()
// Wait consume process to end