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) {
3737 maxDisplayedTags : null ,
3838 filter : null ,
3939 validatorUrl : "https://online.swagger.io/validator" ,
40+ oauth2RedirectUrl : `${ window . location . protocol } //${ window . location . host } /oauth2-redirect.html` ,
4041 configs : { } ,
4142 custom : { } ,
4243 displayOperationId : false ,
Original file line number Diff line number Diff line change 11---
22url : " https://petstore.swagger.io/v2/swagger.json"
33dom_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