Skip to content

Commit e616119

Browse files
feat: chang default OpenAPI Petstore version to OAS 3.0.x (#3211)
- changing how e2e tests run for local/dev as URL param not supported by default - update scripts to run e2e with url import support - added ability to load OAS2.0 and OAS3.0 petstores from menu Co-authored-by: Vladimir Gorej <[email protected]>
1 parent b4b82e1 commit e616119

File tree

9 files changed

+1687
-718
lines changed

9 files changed

+1687
-718
lines changed

dev-helpers/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
layout: 'StandaloneLayout',
5454
presets: [
5555
SwaggerEditorStandalonePreset
56-
]
56+
],
57+
queryConfigEnabled: true,
5758
})
5859

5960
window.editor = editor

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@
3737
"lint-errors": "eslint --cache --quiet --ext '.js,.jsx' src test",
3838
"lint-fix": "eslint --cache --ext '.js,.jsx' src test --fix",
3939
"cy:start": "webpack serve --port 3260 --host 0.0.0.0 --config webpack/dev.babel.js --hot --progress --static test/e2e/static",
40+
"cy:start:ci": "webpack serve --port 3261 --host 0.0.0.0 --config webpack/e2e.babel.js --hot --progress --static test/e2e/static",
4041
"cy:open": "cypress open",
4142
"cy:run:chrome": "cypress run --browser chrome",
4243
"cy:run:firefox": "cypress run --browser firefox",
4344
"cy:run:electron": "cypress run --browser electron",
4445
"cy:dev": "cross-env CYPRESS_BASE_URL=http://localhost:3260/ start-server-and-test cy:start http://localhost:3260 cy:open",
45-
"cy:ci": "cross-env CYPRESS_BASE_URL=http://localhost:3001/ start-server-and-test build:serve http://localhost:3001 cy:run:electron",
46+
"cy:ci": "cross-env CYPRESS_BASE_URL=http://localhost:3261/ start-server-and-test cy:start:ci http://localhost:3261 cy:run:electron",
4647
"test": "run-s test:unit-mocha test:unit-jest cy:ci lint-errors",
4748
"test-in-node": "run-s lint-errors test:unit-mocha test:unit-jest",
4849
"test:unit-jest": "cross-env BABEL_ENV=test jest --config ./config/jest/jest.unit.config.js",

0 commit comments

Comments
 (0)