如何检查一个元素是否有多个类?在官方文档上找不到任何内容,只有:
cy.get('form').find('input').should('have.class', 'disabled')
或者
expect($el).to.have.class('foo')
插入多个类名时,出现错误:
expect($el).to.have.class('foo bar baz')
有解决办法吗?
testing e2e-testing cypress
cypress ×1
e2e-testing ×1
testing ×1