Skip to content

Commit ee263f0

Browse files
committed
test: update programmatic names for response action buttons
1 parent 59f0646 commit ee263f0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/e2e-cypress/e2e/a11y/button-accessible-names.cy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("Button accessible names", () => {
3232
checkAllButtonsHaveNames()
3333
})
3434

35-
it("gives the cURL command copy button a programmatic name", () => {
35+
it("gives response action buttons programmatic names", () => {
3636
visitTestOperation()
3737

3838
cy.get(".btn.execute")
@@ -46,6 +46,11 @@ describe("Button accessible names", () => {
4646
.should("have.attr", "aria-label", "Copy cURL command to clipboard")
4747
.and("have.attr", "title", "Copy cURL command to clipboard")
4848

49+
cy.get(".responses-wrapper .download-contents").should(
50+
"have.text",
51+
"Download"
52+
)
53+
4954
checkAllButtonsHaveNames()
5055
})
5156

0 commit comments

Comments
 (0)