Skip to content

Commit

Permalink
cypress configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Apr 10, 2024
1 parent 551130e commit c282951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ start-acceptance: ## Start acceptance server-containers

.PHONY: test-acceptance
test-acceptance: ## Start Cypress
(cd acceptance && ./node_modules/.bin/cypress open --config-file tests/cypress.singlelingual.config.js)
(cd acceptance && ./node_modules/.bin/cypress open --config-file tests/cypress.config.js)

.PHONY: test-acceptance-headless
# test-acceptance-headless: install-acceptance ## Run cypress tests in CI
test-acceptance-headless: ## Run cypress tests in CI
(cd acceptance && ./node_modules/.bin/cypress run --config-file tests/cypress.singlelingual.config.js)
(cd acceptance && ./node_modules/.bin/cypress run --config-file tests/cypress.config.js)

.PHONY: stop-test-acceptance-server
stop-test-acceptance-server: ## Stop acceptance server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const { defineConfig } = require('cypress');
module.exports = defineConfig({
viewportWidth: 1280,
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: 'http://localhost:3000',
specPattern: 'cypress/tests/*.singlelingual.cy.{js,jsx}',
},
Expand Down

0 comments on commit c282951

Please sign in to comment.