Skip to content

Commit

Permalink
define test-params in cypress.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
heckenmann authored and vehagn committed May 13, 2024
1 parent 49ea807 commit 6273d50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions app-src/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
const { defineConfig } = require("cypress");
const { defineConfig } = require('cypress')

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: 'http://localhost:3000',
viewportWidth: 1920,
viewportHeight: 1080,
},
});
})
5 changes: 1 addition & 4 deletions app-src/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
describe('UI Tests', () => {})

export function visitBaseUrlAndTest(fn) {
const baseUrl =
'http://localhost:3000#base="http%3A%2F%2Flocalhost%3A3001%2F"'
cy.viewport(1920, 1080)
cy.visit(baseUrl)
cy.visit('#base="http%3A%2F%2Flocalhost%3A3001%2F"')

fn()

Expand Down

0 comments on commit 6273d50

Please sign in to comment.