File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
test/e2e-cypress/tests/features Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ module.exports = function SwaggerUI(opts) {
37
37
maxDisplayedTags : null ,
38
38
filter : null ,
39
39
validatorUrl : "https://online.swagger.io/validator" ,
40
+ oauth2RedirectUrl : `${ window . location . protocol } //${ window . location . host } /oauth2-redirect.html` ,
40
41
configs : { } ,
41
42
custom : { } ,
42
43
displayOperationId : false ,
Original file line number Diff line number Diff line change 1
1
---
2
2
url : " https://petstore.swagger.io/v2/swagger.json"
3
3
dom_id : " #swagger-ui"
4
- validatorUrl : " https://online.swagger.io/validator"
5
- oauth2RedirectUrl : " http://localhost:3200/oauth2-redirect.html"
4
+ validatorUrl : " https://online.swagger.io/validator"
Original file line number Diff line number Diff line change
1
+ describe ( "dynamic default oauth2RedirectUrl" , ( ) => {
2
+ it ( "should render the OAS3 badge correctly" , ( ) => {
3
+ // This is a sanity check to make sure the badge is present.
4
+ // If this is failing, it's probably not related to #4865.
5
+ cy . visit ( "/" )
6
+ . window ( )
7
+ . then ( win => win . ui . getConfigs ( ) )
8
+ . should ( "include" , { oauth2RedirectUrl : "http://localhost:3230/oauth2-redirect.html" } )
9
+ } )
10
+ } )
You can’t perform that action at this time.
0 commit comments