improvement: generate default oauth2RedirectUrl based on page location (via #5085)

This commit is contained in:
kyle
2018-12-15 03:54:53 +01:00
committed by Ron
parent 9658aca08e
commit 61b5ed79a0
3 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
describe("dynamic default oauth2RedirectUrl", () => {
it("should render the OAS3 badge correctly", () => {
// This is a sanity check to make sure the badge is present.
// If this is failing, it's probably not related to #4865.
cy.visit("/")
.window()
.then(win => win.ui.getConfigs())
.should("include", { oauth2RedirectUrl: "http://localhost:3230/oauth2-redirect.html" })
})
})