angular - 在 Cypress 中无法使 XHR 请求出错,net::ERR_BLOCKED_BY_CLIENT
问题描述
我正在尝试实施一个测试来登录我的页面。
我使用柏树填充文本框并提交按钮。
没有柏树的网页可以工作。在柏树中,我无法登录。
我不明白为什么我不能用 cypress 登录。
这是我的测试脚本。
describe('click_test', () => {
beforeEach(() => cy.visit('/'));
it('set user Id, password and submit the button', () => {
cy.get('input').first().type('User')
cy.get('input[type = "password"]').first().type('***')
cy.contains('Giriş Yap').parent().click()
})
});
控制台错误:POST net::ERR_BLOCKED_BY_CLIENT
解决方案
推荐阅读
- python - XML 到数据帧
- sql - 如何使用 JPA/Hibernate 映射这种关系?
- python - 启用 Webiopi CORS 请求
- templates - 用于源和目标打印的 Golang 模板
- html - 使用 R 提取 html 文本 - 无法访问某些节点
- java - Java,一个我看不懂的返回方法
- c# - 在 C# 中具有异步 TCP 侦听器的多个客户端
- javascript - 注入新的 HTML 会删除以前附加的侦听器
- python - Django Rest Framework - 使用 ModelSerializer 和 ModelViewSet 更新相关模型
- excel - 在 Excel for Mac 365 上更改选项按钮的文本