Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const iFrame = (iframe: string, element: string) => {
- cy.get(iframe).then(function ($iframe) {
- const $body = $iframe.contents().find('body');
- cy.wrap($body).find(element);
- })
- }
- iFrame(iframe, displayedDetails);
- cy.should('contain.text', newFirstName)
- .should('contain.text', newLastName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement