feat: syntax highlighting of code section (#6236)

Co-authored-by: AdrieanKhisbe <adriean.khisbe@live.fr>
This commit is contained in:
Tim Lai
2020-07-17 15:29:15 -07:00
committed by GitHub
parent 9e294fbab5
commit a73783b73d
20 changed files with 340 additions and 228 deletions

View File

@@ -74,9 +74,9 @@ describe("OpenAPI 3.0 Allow Empty Values in Request Body", () => {
.get(".execute.opblock-control__btn")
.click()
// cURL component
.get(".responses-wrapper .copy-paste")
.get(".responses-wrapper .curl-command")
.should("exist")
.get(".responses-wrapper .copy-paste textarea")
.get(".responses-wrapper .curl-command span")
.should("contains.text", "tags=&status=")
})
@@ -101,9 +101,9 @@ describe("OpenAPI 3.0 Allow Empty Values in Request Body", () => {
.get(".execute.opblock-control__btn")
.click()
// cURL component
.get(".responses-wrapper .copy-paste")
.get(".responses-wrapper .curl-command")
.should("exist")
.get(".responses-wrapper .copy-paste textarea")
.get(".responses-wrapper .curl-command span")
.should("contains.text", "&status=")
.should("not.contains.text", "tags=")
})
@@ -131,9 +131,9 @@ describe("OpenAPI 3.0 Allow Empty Values in Request Body", () => {
.get(".execute.opblock-control__btn")
.click()
// cURL component
.get(".responses-wrapper .copy-paste")
.get(".responses-wrapper .curl-command")
.should("exist")
.get(".responses-wrapper .copy-paste textarea")
.get(".responses-wrapper .curl-command span")
.should("not.contains.text", "tags=")
.should("not.contains.text", "status=")
})