Skip to content

Commit

Permalink
Fixed cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Feb 22, 2021
1 parent 45dcd5c commit 032bb2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion cypress/integration/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions entrypoint-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 032bb2a

Please sign in to comment.