Skip to content

Commit

Permalink
test(webpack-example): use port 8686
Browse files Browse the repository at this point in the history
Avoid conflicts with common services.
  • Loading branch information
thewtex committed Sep 22, 2023
1 parent 464fea8 commit 4dbafc2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions examples/webpack/cypress/e2e/load_data.cy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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,')
})
})

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"')
Expand Down
14 changes: 7 additions & 7 deletions examples/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4dbafc2

Please sign in to comment.