[Cypress] should('have.text')와 should('include.text')의 차이

쿼카쿼카·2023년 3월 4일
0

.should('have.text') .should('have.value')

  • have? 가지다 아니에요? 그럼 포함만 해도 합겨...
  • 절대 아니에요!!! have는 엄격하게 딱 작성한 text나 value와 정확히 일치해야 합격이에요
  • 포함하고 있으면 불합격이에요!

.should('include.text') .should('include.value')

  • include 많이 익숙하쥬??ㅎㅎㅎ
  • include는 적은 내용이 포함!!! 포함!!!!!! 포항항!!! 됐을 때도 합격으로 쳐줘요!
profile
쿼카에요

0개의 댓글