未验证 提交 d17a81e1 编写于 作者: T Tim Lai 提交者: GitHub

fix(cypress): tweak to ensure an element exists before test (#7074)

上级 1291c1e2
......@@ -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")
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册