Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
为什么 data-* 属性比普通 ID 属性更适合用于元素选择?
Cypress https docs cypress io guides references best practices html Selecting Elements和许多其他关于测试 Web 应用程序的帖子建议依赖像这样的数据属性d
seleniumwebdriver
Cypress
angulare2e
如何在 Cypress.io 中强制测试失败
在 Cypress io 中 如果满足特定条件 有没有一种方法可以强制测试失败 例如 在我的网页上 如果字符串 抱歉 出了点问题 出现在我希望测试失败的页面上 目前这就是我正在做的事情
Testing
Cypress
如何在 Cypress 中存储图像的 src 并将其与另一个图像进行比较?
测试目标是确认如果用户上传新图像 则上传图像的 src 属性会发生更改 这意味着图像已更改 我尝试使用几种方法 概述如下 第一种方法 cy get img then img gt store the src const source img
javascript
e2etesting
Cypress
返回父元素 - Cypress 中的 CSS 选择器
有人可以在以下情况下提供帮助吗 我必须办理登机手续if语句元素是否存在 由于没有可能使用Xpath in find命令 使用 Xpath 运行时引发语法错误 我的代码看起来 cy xpath list eq index then el1 g
cssselectors
concatenation
Cypress
Nextjs Cypress 只发现单元测试代码覆盖率
我正在尝试在此之后向 cypress 添加代码覆盖率tutorial https docs cypress io guides tooling code coverage Introduction I added cypress code
ReactJS
Nextjs
Cypress
codecoverage
istanbul
如何保存变量/文本以便稍后在 Cypress 测试中使用?
赛普拉斯文档 https docs cypress io guides core concepts variables and aliases html Elements https docs cypress io guides core
javascript
Cypress
Cypress 断言等于和大于
如何在cypress中编写大于等于的断言 如果我的值 5000 00 并且我必须编写测试用例 如果我的值 5000 00比通过并且如果我的值 gt 5000 00也通过 如何正确编写它通过 my value 5000 00 expect m
Cypress
测试 API 调用不会在 Cypress 中发生
我在我的应用程序中实现了 API 数据缓存 这样如果数据已经存在 就不会重新获取 我可以拦截初始获取 cy intercept api things as api cy visit things cy wait api passes 为了测
Cypress
cypressintercept
Cypress 装置 - 无法读取未定义的属性(读取“数据”)
我正在尝试使用固定装置来保存不同测试的数据 特别是用户凭据 这是代码的示例 当进行第二次测试时 我得到了 Cannot read properties of undefined reading data 有什么想法以及如何解决这个问题吗 这
Cypress
fixtures
Cypress 默认请求等待?
我需要 Cypress 在执行任何操作之前默认等待任何 xhr 请求完成 有没有办法将其设为默认值或任何其他替代方案 因为我正在测试的应用程序速度很慢并且会进行大量 api 调用 编辑 为每个 api 请求编写一条语句会变得混乱且不必要的工
javascript
angular
Automation
e2etesting
Cypress
Cypress 在玩笑断言中导致类型错误
我一直在使用react testing library也 testing library jest dom extend expect 我昨天安装了 Cypress 现在我的所有笑话匹配器上都出现 Typescript 错误 Propert
typescript
jestjs
Cypress
在 _app 中模拟 Next.js getInitialProps
我正在尝试寻找一种方式来嘲笑Next js s getInitialProps 我目前正在使用 cypress 运行 E2E 测试 但无法找到一种方法来模拟服务器端获取 而不需要启动模拟服务器来进行获取 我很好奇是否有人找到了更好的方法 谢
Nextjs
Cypress
serversiderendering
使用 cypress 上传/导入 Excel 文件
I ve a UI similar to 我需要将已放置在固定文件夹中的 xlsx 文件上传到应用程序中 有什么建议如何使用 cypress 来做到这一点吗 这是我发现的解决方案 安装 cypress 文件上传 npm install sa
Automation
Cypress
Cypress - 从 json 响应正文获取值
我正在使用 Cypress 进行一些 API 测试 但我很难访问 JSON 响应正文中的值 但是我可以对身体进行断言 表明它正确接收了它 下面我尝试分配 JSON 主体 response body 然后从中获取 id 的值 describe
javascript
Cypress
webapitesting
禁用 Cypress 自动滚动
我正在测试我的应用程序 我有很长的侧边菜单 并且我有这样的代码 cy get tab click force true 自动滚动发生在获取和单击之间 然后选定的选项卡不可见 因为顶部菜单的位置已固定 我找到了很多解决方案 但没有一个有效 到
javascript
ReactJS
Cypress
后台进程的 cy.exec 超时
我正在尝试使用启动服务器cy exec并像这样后台处理 cy exec nohup python m my module arg 1 failOnNonZeroExit false then result gt if result code
python
Testing
Cypress
如何修复 Azure CI 上的控制台日志编码问题?
当我在发布管道的 docker 容器中运行 Cypress 时 我在 Azure CI 上得到了这个信息 我猜这可能是因为 Cypress docker NodeJS 或 CI 本身的某些设置 https i stack imgur com
Azure
Docker
continuousintegration
Cypress
consolelog
如何让 Cypress 使用位于默认集成文件夹之外的测试文件?
我正在努力保持我的 spec js用于测试的文件位于需要测试的实际文件旁边 如下所示 product product js product spec js user user js user spec js 以上 spec js文件没有出现
Testing
Cypress
cypresscomponenttestrunner
cypressconfiguration
cypress 中未定义 window 属性
我正在使用 Cypress 和 Meteor 我需要Meteor窗口上要调用的对象Meteor loginWithPassword 我想用它来跳过每次使用 UI 登录 我已尝试以下操作 但运行时 Meteor 不在窗口上 cy window
javascript
Testing
Cypress
无法使用 Cypress.io 测试页脚的背景颜色,它会抛出错误
无法使用 Cypress io 测试背景颜色 在运行 cypress 测试时会抛出以下错误 CypressError 重试超时 actual equals 不是函数 通过安装的 chai colorsnpm install chai col
javascript
Cypress
«
1
2
3
4
5
6
7
8
...10
»