From 459019f5eee96ba7c8d4832ef4018cb1e8d95120 Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Mon, 5 Aug 2019 12:26:35 +0200 Subject: [PATCH] fix wait for consume, publish category warning --- client/src/routes/Publish/index.tsx | 6 +++--- cypress/integration/3_consume.spec.js | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/routes/Publish/index.tsx b/client/src/routes/Publish/index.tsx index d3733d0..18542eb 100644 --- a/client/src/routes/Publish/index.tsx +++ b/client/src/routes/Publish/index.tsx @@ -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, diff --git a/cypress/integration/3_consume.spec.js b/cypress/integration/3_consume.spec.js index 6377116..07f37ef 100644 --- a/cypress/integration/3_consume.spec.js +++ b/cypress/integration/3_consume.spec.js @@ -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