fix(cypress): tweak to ensure an element exists before test (#7074)
This commit is contained in:
@@ -182,6 +182,9 @@ describe("OpenAPI 3.0 Validation for Required Request Body and Request Body Fiel
|
||||
.select("application/x-www-form-urlencoded")
|
||||
.get(".opblock-body .opblock-section .opblock-section-request-body .parameters:nth-child(2) > .parameters-col_description input")
|
||||
.should("not.have.class", "invalid")
|
||||
// add item to get input, just an extra confirmation of non-invalid class
|
||||
.get(".opblock-body .opblock-section .opblock-section-request-body .parameters:nth-child(4) > .parameters-col_description button")
|
||||
.click()
|
||||
.get(".opblock-body .opblock-section .opblock-section-request-body .parameters:nth-child(4) > .parameters-col_description input")
|
||||
.should("not.have.class", "invalid")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user