Skip to content

Commit

Permalink
Random test fix (SAP#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDoberer authored Feb 28, 2022
1 parent a90983e commit eaef020
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ describe('Modal Microfrontend', () => {
.get('[data-testid=modal-mf]')
.should('be.visible');

cy.get('[data-testid=modal-mf] iframe').then(ifr => {
cy.wrap(ifr[0].contentDocument)
.its('body')
cy.getIframeBody({}, 0, '.iframeModalCtn._modal').then(result => {
$iframeBody = result;
cy.wrap($iframeBody)
.contains('Close modal')
.click();

Expand Down

0 comments on commit eaef020

Please sign in to comment.