这句话是什么意思“赛普拉斯命令不返回他们的主题,他们让他们"?

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.

这篇关于这句话是什么意思“赛普拉斯命令不返回他们的主题,他们让他们"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Update another component when Formik form changes(当Formik表单更改时更新另一个组件)
Formik validation isSubmitting / isValidating not getting set to true(Formik验证正在提交/isValiating未设置为True)
React Validation Max Range Using Formik(使用Formik的Reaction验证最大范围)
Validation using Yup to check string or number length(使用YUP检查字符串或数字长度的验证)
Updating initialValues prop on Formik Form does not update input value(更新Formik表单上的初始值属性不会更新输入值)
password validation with yup and formik(使用YUP和Formick进行密码验证)