Some checks failed
Node.js CI / build (push) Failing after 2s
Node.js CI / e2e-tests (+(a11y|security|bugs)/**/*cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/!(o|d|m)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/+(o|d)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/m*.cy.js) (push) Failing after 2s
CodeQL / Analyze (javascript) (push) Failing after 2m49s
Security scan for docker image / build (push) Failing after 51s
27 lines
1.3 KiB
JavaScript
Executable File
27 lines
1.3 KiB
JavaScript
Executable File
describe("dynamic default oauth2RedirectUrl", () => {
|
|
it("should compute an oauth2RedirectUrl based on the browser's location at runtime", () => {
|
|
cy.visit("/")
|
|
.window()
|
|
.then(win => win.ui.getConfigs())
|
|
.should("include", { oauth2RedirectUrl: "http://localhost:3230/oauth2-redirect.html" })
|
|
})
|
|
it("should compute an oauth2RedirectUrl based on the browser's location at runtime, including the path", () => {
|
|
cy.visit("/pages/5085/")
|
|
.window()
|
|
.then(win => win.ui.getConfigs())
|
|
.should("include", { oauth2RedirectUrl: "http://localhost:3230/pages/5085/oauth2-redirect.html" })
|
|
})
|
|
it("should compute an oauth2RedirectUrl based on the browser's location at runtime, including the path, without confusing the file name for a folder name", () => {
|
|
cy.visit("/pages/5085/index.html")
|
|
.window()
|
|
.then(win => win.ui.getConfigs())
|
|
.should("include", { oauth2RedirectUrl: "http://localhost:3230/pages/5085/oauth2-redirect.html" })
|
|
})
|
|
it("should compute an oauth2RedirectUrl based on the browser's location at runtime, including the path, even it does not end with a slash", () => {
|
|
cy.visit("/pages/5085")
|
|
.window()
|
|
.then(win => win.ui.getConfigs())
|
|
.should("include", { oauth2RedirectUrl: "http://localhost:3230/pages/5085/oauth2-redirect.html" })
|
|
})
|
|
})
|