What does this statement mean quot;Cypress commands do not return their subjects, they yield themquot;?(这句话是什么意思“赛普拉斯命令不返回他们的主题,他们让他们?)
问题描述
我正在了解 Cypress.io,并在他们的官方网站上看到了这个声明 Cypress.io
I'm learning about Cypress.io and came across this statement in their official site Cypress.io
Cypress 命令不返回它们的主题,而是让它们."
"Cypress commands do not return their subjects, they yield them."
cypress.io 中命令中的yield"和return"有什么区别?
What is the difference between "yield" and "return" in commands in cypress.io?
推荐答案
我把yield 的意思是'付钱',而return = '付钱'.
I take yield to mean 'pay it forward', whereas return = 'pay it back'.
参见核心概念
赛普拉斯命令是异步的,并会排队等待稍后执行.在执行过程中,从一个命令到下一个命令会产生主题,并且在每个命令之间运行大量有用的赛普拉斯代码以确保一切正常.
Cypress commands are asynchronous and get queued for execution at a later time. During execution, subjects are yielded from one command to the next, and a lot of helpful Cypress code runs between each command to ensure everything is in order.
这篇关于这句话是什么意思“赛普拉斯命令不返回他们的主题,他们让他们"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:这句话是什么意思“赛普拉斯命令不返回他们的主题,他们让他们"?


- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Flexslider 箭头未正确显示 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01