Skip to content

Commit

Permalink
fix e2e test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
slavas490 committed Jan 31, 2024
1 parent d36bc1b commit 02e2562
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ stopproxeus=pkill proxeus
startds=curl -s http://localhost:2115 > /dev/null || ( PROXEUS_DATA_DIR=$(1) docker-compose up -d document-service && touch $(1)/ds-started )
startnodes=curl -s http://localhost:8011 > /dev/null || (PROXEUS_PLATFORM_DOMAIN=http://$(DOCKER_GATEWAY):1323 NODE_CRYPTO_RATES_URL=http://localhost:8011 REGISTER_RETRY_INTERVAL=1 docker-compose -f docker-compose.yml -f docker-compose-extra.override.yml up -d node-crypto-forex-rates && touch $(1)/nodes-started )
startmongo=nc -z localhost 27017 2> /dev/null || (docker run -d -p 27017:27017 -p 27018:27018 -p 27019:27019 proxeus/mongo-dev-cluster && sleep 10 && touch $(1)/mongo-started)
waitforproxeus=echo "Waiting for Proxeus to start" ; curl --head -X GET --retry 120 --retry-connrefused --retry-delay 1 --silent -o /dev/null http://localhost:1323 && echo "Proxeus started" || echo "Unable to start Proxeus"

ifeq ($(coverage),true)
COVERAGE_OPTS=-coverprofile artifacts/[email protected] -coverpkg="$(coverpkg)"
Expand Down Expand Up @@ -191,6 +192,7 @@ test-ui: server ui
$(call startds,$(testdir))
$(call startnodes,$(testdir))
$(call startproxeus,$(testdir))
$(call waitforproxeus,$(testdir))
$(MAKE) -C test/e2e test; ret=$$?; \
$(stopproxeus); \
[ -e $(testdir)/ds-started ] && docker-compose down; \
Expand Down
6 changes: 5 additions & 1 deletion test/e2e/cypress/integration/0_powerup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ describe(`Power up on ${url}`, () => {

it('should bring to home page after saving with default values', () => {
cy.get('button.btn-primary').eq(2).click()

cy.location('pathname', {
timeout: 60000
}).should('eq', '/');
})

})
})

0 comments on commit 02e2562

Please sign in to comment.