Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. export const iFrame = (iframe: string, element: string) => {
  2. cy.get(iframe).then(function ($iframe) {
  3. const $body = $iframe.contents().find('body');
  4. cy.wrap($body).find(element);
  5. })
  6. }
  7.  
  8. iFrame(iframe, displayedDetails);
  9. cy.should('contain.text', newFirstName)
  10. .should('contain.text', newLastName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement