:AssertionError를 : 예상 [사실] 사실합니다
this.expect(this.getWidget('contacts').isNamesDisplayed()).to.eventually.be.true.and.notify(next);
콘솔에서 내가 가진 :
1 scenario (1 passed) 4 steps (4 passed) 0m03.618s [17:06:38] E/launcher - expected [ true ] to be true [17:06:38] E/launcher - AssertionError: expected [ true ] to be true
이 경우에는 검증 실패에도 불구하고 성공적이라고 표시되어 있지만 '실패'주장 이후에 또 다른 것이있을 경우 모든 것이 실패하게됩니다.
저는 각도기와 챠이의 마지막 버전을 사용하고 있습니다.
코드와 함께 확인했습니다 : AssertionError : expected [true] to equal [true] –
내 대답이 업데이트되었습니다. to.Equal() 대신에'to.eql()'을 사용하십시오. 'to.eql()'에 대한 추가 정보 [http://chaijs.com/api/bdd/#arguments-section] –
고마워, 작동한다. –