Guest User

Untitled

a guest
Jul 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Date: <input data-bind="value: dateValue"/>
  2. Number: <input data-bind="value: dateValue"/>
  3. Result : <span data-bind="text: calculatedValue">Result Should shown here</span>
  4.  
  5. cy.get("targetDateInput").clear().type("07/08/2018").type("{enter}");
  6. cy.get("targetNumberInput").clear().type("6").type("{enter}");
  7.  
  8. cy.get("targetCalculatedValueDiv").children("span").should(($span) => {
  9. expect($span[0].innerHTML).to.contain("07/14/2018");
  10. });
Add Comment
Please, Sign In to add comment