Skip to content

Commit

Permalink
Ahh, i'm getting desperate, proxy ... base url issue ?
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Sep 28, 2023
1 parent 1380f7e commit 328a186
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
6 changes: 5 additions & 1 deletion ui/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:8888',
baseUrl: 'http://127.0.0.1:8888',
supportFile: 'cypress/support.js',
screenshotsFolder: 'cypress/debug',
setupNodeEvents(on, config) {
// bind to the event we care about
require('cypress-log-to-output').install(on);
},
},
});
2 changes: 1 addition & 1 deletion ui/cypress/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import '@testing-library/cypress/add-commands';

Cypress.Commands.add('login', (username = 'idtest0', password = '0000') => {
cy.visit('/datacollection');
cy.visit('http://127.0.0.1:8888');
cy.findByRole('heading', { name: 'MXCuBE' }).should('be.visible');
cy.findByLabelText('Login ID').type(username);
cy.findByLabelText('Password').type(password);
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"@testing-library/user-event": "^13.5.0",
"babel-preset-react-app": "10.0.1",
"concurrently": "^7.0.0",
"cypress": "13.1.0",
"cypress": "12.17.4",
"cypress-log-to-output": "1.1.2",
"eslint": "8.42.0",
"eslint-config-galex": "4.5.2",
Expand Down
29 changes: 17 additions & 12 deletions ui/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 328a186

Please sign in to comment.