From 032bb2a971eb415a8dc724e6ffbbfc311b73a9fb Mon Sep 17 00:00:00 2001 From: razvanMiu Date: Mon, 22 Feb 2021 10:57:11 +0200 Subject: [PATCH] Fixed cypress test --- cypress/integration/sites.js | 6 +++++- entrypoint-prod.sh | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cypress/integration/sites.js b/cypress/integration/sites.js index e5a922d5..3c4710bf 100644 --- a/cypress/integration/sites.js +++ b/cypress/integration/sites.js @@ -11,7 +11,11 @@ describe('Sites in DiscodataTableBlock', () => { it('Add Blocks', () => { changePageTitle('Sites in DiscodataTableBlock'); addBlock('Eprtr Blocks', 'eprtr_blocks', 'eprtr_filters_block'); - addBlock('Data blocks', 'data_blocks', 'discodata_table_block'); + addBlock( + 'Discodata components', + 'discodata_components', + 'discodata_components_table_block', + ); openSidebarTab('Block'); setInputValue( 'textarea#field-field-widget-importExport', diff --git a/entrypoint-prod.sh b/entrypoint-prod.sh index a773cfe1..02a09697 100755 --- a/entrypoint-prod.sh +++ b/entrypoint-prod.sh @@ -62,8 +62,7 @@ if [[ "$1" == "cypress"* ]]; then RAZZLE_API_PATH=$RAZZLE_API_PATH yarn start & cd /opt/frontend - wait-on http://localhost:3000 -t 120000 - exec bash -c "NODE_ENV=production CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress run" + exec bash -c "wait-on -t $TIMEOUT http://localhost:3000 && NODE_ENV=production CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress run" fi exec "$@"