柏树
赛普拉斯测试中用于与Ant Design组件进行交互的助手。
用
直接导入提供的帮助程序:
import { getButton , shouldHaveTooltip } from '@wisersolutions/cypress-antd'
// note that "child command" (Cypress terminology) helpers are curried to be used inside `then`
getButton ( 'Cool Button' ) . then ( shouldHaveTooltip ( 'The coolness of this button knows no bounds.' ) )
或使用赛普拉斯自动将它们注册为自定义命令:
import '@wisersolutions/cypress-antd/lib/regi
1