feat(deps): integrate swagger-client@3.22.0 (#9202)
This commit is contained in:
@@ -8,11 +8,13 @@ describe("configuration options: `urls` and `urls.primaryName`", () => {
|
||||
.get("select > option")
|
||||
.eq(0)
|
||||
.should("have.text", "One")
|
||||
.should("have.attr", "value", "/documents/features/urls/1.yaml")
|
||||
.should("have.attr", "value", )
|
||||
.and("match", /\/documents\/features\/urls\/1\.yaml$/)
|
||||
.get("select > option")
|
||||
.eq(1)
|
||||
.should("have.text", "Two")
|
||||
.should("have.attr", "value", "/documents/features/urls/2.yaml")
|
||||
.should("have.attr", "value")
|
||||
.and("match", /\/documents\/features\/urls\/2\.yaml$/)
|
||||
})
|
||||
|
||||
it("should render the first URL in the list", () => {
|
||||
@@ -21,19 +23,20 @@ describe("configuration options: `urls` and `urls.primaryName`", () => {
|
||||
.should("have.text", "OneOAS 2.0")
|
||||
.window()
|
||||
.then(win => win.ui.specSelectors.url())
|
||||
.should("equal", "/documents/features/urls/1.yaml")
|
||||
.should("match", /\/documents\/features\/urls\/1\.yaml$/)
|
||||
})
|
||||
})
|
||||
|
||||
it("should respect a `urls.primaryName`", () => {
|
||||
cy.visit("/?configUrl=/configs/urls-primary-name.yaml")
|
||||
.get("select")
|
||||
.should("have.value", "/documents/features/urls/2.yaml")
|
||||
.should("contain.value", "/documents/features/urls/2.yaml")
|
||||
.get("h2.title")
|
||||
.should("have.text", "TwoOAS 3.0")
|
||||
.window()
|
||||
.then(win => win.ui.specSelectors.url())
|
||||
.should("equal", "/documents/features/urls/2.yaml")
|
||||
.get("select")
|
||||
.should("contain.value", "/documents/features/urls/2.yaml")
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -19,13 +19,6 @@ import "./commands"
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
|
||||
// Remove fetch, so Cypress can intercept XHRs
|
||||
// see https://github.com/cypress-io/cypress/issues/95
|
||||
Cypress.on("window:before:load", win => {
|
||||
win.fetch = null
|
||||
})
|
||||
|
||||
Cypress.on("uncaught:exception", (err, runnable) => {
|
||||
console.log(JSON.stringify(err, null, 2))
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user