Cypress 通过在 buddy.works 中运行的 iframe 测试元素覆盖错误

RKA*_*RKA 5 node.js cypress

在 buddy.works 的本地主机中运行一些 cypress 测试时,我遇到错误。当我尝试使用登录按钮登录时发生错误。


    CypressError: Timed out retrying after 4050ms: `cy.click()` failed because this element:

    `<button id="login_confirm" type="submit" class="w-100 a_loginButton btn btn-primary">Log In</button>`

    is being covered by another element:

    `<iframe style="position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; border: none; z-index: 2147483647;"></iframe>`

    Fix this problem, or use {force: true} to disable error checking.


Run Code Online (Sandbox Code Playgroud)

我尝试通过修改登录按钮单击代码cy.click({force: true})再次运行测试,但按钮单击没有重定向到用户主页。

当在本地主机中无头运行时,这些 cypress 测试正在通过。