diff --git a/app-src/cypress.config.js b/app-src/cypress.config.js index 97f47c4..1bba48b 100644 --- a/app-src/cypress.config.js +++ b/app-src/cypress.config.js @@ -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, }, -}); +}) diff --git a/app-src/cypress/e2e/spec.cy.js b/app-src/cypress/e2e/spec.cy.js index 5e87edf..2cfd6fa 100644 --- a/app-src/cypress/e2e/spec.cy.js +++ b/app-src/cypress/e2e/spec.cy.js @@ -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()