【发布时间】:2019-10-10 07:13:40
【问题描述】:
如何在 cypress 中测试这段代码?
<Chips
id="ChipsId"
className="chips"
value={this.state.tags}
onChange={this.onChange}
suggestions={this.state.tagGroup}
fromSuggestionsOnly="true"
/>
我试过的代码是:
cy.find('#ChipsId')
.type("Freshers")
.type('{downarrow}')
.type('{enter}');
【问题讨论】: