问题描述
export function viewRuleDetailsFromrulesList(ruleSummary) => {
subject.view({ name: 'SubListInProgramInstance' }).as('currentView');
cy.get('@currentView').field({ name: 'MeasurementRuleConditions' }).find('li span').each(($row) => {
cy.wrap($row).invoke('text').then($rowText => {
if ($rowText == ruleSummary) {
return $row
}
})
})
}
我需要在其他各种验证方法中使用此行。
When('User views the details of the Rule {string}',(ruleSummary) =>{
const elementText= viewRuleDetailsFromrulesList(ruleSummary)//fails
elementText.find('delete').click();
})
我们如何在柏树中实现这一目标?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)