diff --git a/examples/webpack/README.md b/examples/webpack/README.md index 460acbb0c..8f559356c 100644 --- a/examples/webpack/README.md +++ b/examples/webpack/README.md @@ -13,7 +13,7 @@ npm install npm run start ``` -And visit [http://localhost:8080/](http://localhost:8080/). +And visit [http://localhost:8686/](http://localhost:8686/). ## Development diff --git a/examples/webpack/cypress/e2e/load_data.cy.js b/examples/webpack/cypress/e2e/load_data.cy.js index 386ecd748..30f997485 100644 --- a/examples/webpack/cypress/e2e/load_data.cy.js +++ b/examples/webpack/cypress/e2e/load_data.cy.js @@ -1,6 +1,6 @@ describe('Load data', () => { it('successfully loads a mesh', () => { - cy.visit('http://localhost:8080/') + cy.visit('http://localhost:8686/') cy.fixture('cow.vtk', null).then((cowBuffer) => { cy.get('input[type=file]').selectFile({ contents: cowBuffer, fileName: 'cow.vtk' }) cy.get('textarea').contains('"numberOfPoints": 2903,') @@ -8,7 +8,7 @@ describe('Load data', () => { }) it('successfully loads an image', () => { - cy.visit('http://localhost:8080/') + cy.visit('http://localhost:8686/') cy.fixture('cthead1.png', null).then((headBuffer) => { cy.get('input[type=file]').selectFile({ contents: headBuffer, fileName: 'cthead1.png' }) cy.get('textarea').contains('"imageType"') diff --git a/examples/webpack/package.json b/examples/webpack/package.json index 1cc08ee64..b5af059b8 100644 --- a/examples/webpack/package.json +++ b/examples/webpack/package.json @@ -5,19 +5,19 @@ "main": "index.js", "scripts": { "build": "webpack --progress --color --mode production", - "start": "webpack-dev-server --mode development --static ./dist/", - "start:production": "webpack-dev-server --mode production --static ./dist/", + "start": "webpack-dev-server --port 8686 --mode development --static ./dist/", + "start:production": "webpack-dev-server --port 8686 --mode production --static ./dist/", "cypress:open": "npx cypress open", "cypress:run": "npx cypress run --config defaultCommandTimeout=8000", "cypress:install": "npx cypress install", "cypress:runChrome": "npx cypress run --config defaultCommandTimeout=8000 --browser chrome", "cypress:runFirefox": "npx cypress run --config defaultCommandTimeout=8000 --browser firefox", "cypress:runFirefox:ci": "npm run cypress:install && npx cypress run --config defaultCommandTimeout=8000 --browser firefox", - "test:debug": "start-server-and-test start http-get://localhost:8080 cypress:open", - "test": "start-server-and-test start:production http-get://localhost:8080 cypress:run", - "test:chrome": "start-server-and-test start:production http-get://localhost:8080 cypress:runChrome", - "test:firefox:ci": "start-server-and-test start:production http-get://localhost:8080 cypress:runFirefox:ci", - "test:firefox": "start-server-and-test start:production http-get://localhost:8080 cypress:runFirefox" + "test:debug": "start-server-and-test start http-get://localhost:8686 cypress:open", + "test": "start-server-and-test start:production http-get://localhost:8686 cypress:run", + "test:chrome": "start-server-and-test start:production http-get://localhost:8686 cypress:runChrome", + "test:firefox:ci": "start-server-and-test start:production http-get://localhost:8686 cypress:runFirefox:ci", + "test:firefox": "start-server-and-test start:production http-get://localhost:8686 cypress:runFirefox" }, "repository": { "type": "git",