fix: Updating select to pass in a better prop; updating test to do a better check (#6385)
fixes #6372
This commit is contained in:
@@ -3,11 +3,9 @@
|
||||
describe("#6351: Server dropdown should change when switched via oas3Actions.setSelectedServer", () => {
|
||||
it("should show different selected server", () => {
|
||||
cy.visit("/?url=/documents/bugs/6351.yaml")
|
||||
.get("select")
|
||||
.contains("http://testserver1.com")
|
||||
.get("select").should("have.value", "http://testserver1.com")
|
||||
.window()
|
||||
.then(win => win.ui.oas3Actions.setSelectedServer("http://testserver2.com"))
|
||||
.get("select")
|
||||
.contains("http://testserver2.com")
|
||||
.get("select").should("have.value", "http://testserver2.com")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user