fix: add autofocus to auth fields (#6483)
This commit is contained in:
@@ -7,6 +7,17 @@ describe("OAuth2 Application flow", function() {
|
||||
}).as("tokenRequest")
|
||||
})
|
||||
|
||||
// https://github.com/swagger-api/swagger-ui/issues/6395
|
||||
it("should have first authorization input autofocused", () => {
|
||||
cy
|
||||
.visit("/?url=http://localhost:3231/swagger.yaml")
|
||||
.get(".btn.authorize")
|
||||
.click()
|
||||
|
||||
cy.focused()
|
||||
.should("have.id", "oauth_username")
|
||||
})
|
||||
|
||||
it("should make an application flow Authorization header request", () => {
|
||||
cy
|
||||
.visit("/?url=http://localhost:3231/swagger.yaml")
|
||||
@@ -52,4 +63,4 @@ describe("OAuth2 Application flow", function() {
|
||||
.get(".live-responses-table .response-col_status")
|
||||
.contains("200")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user