Skip to content

Commit

Permalink
check only hash instead of full url in iframe tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentUllal committed Oct 31, 2024
1 parent 220a4ab commit 917cd14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions container/cypress/e2e/test-app/iframe/iframe-container.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('Iframe Container Test', () => {
.click();

cy.location().should(loc => {
expect(loc.href).to.eq('http://localhost:8080/iframe/iframeContainer.html#openAsModal-iframe');
expect(loc.hash).to.eq('#openAsModal-iframe');
});
});
});
Expand All @@ -147,7 +147,7 @@ describe('Iframe Container Test', () => {
.click();

cy.location().should(loc => {
expect(loc.href).to.eq('http://localhost:8080/iframe/iframeContainer.html#openAsDrawer-iframe');
expect(loc.hash).to.eq('#openAsDrawer-iframe');
});
});
});
Expand All @@ -165,7 +165,7 @@ describe('Iframe Container Test', () => {
.click();

cy.location().should(loc => {
expect(loc.href).to.eq('http://localhost:8080/iframe/iframeContainer.html#openAsSplitview-iframe');
expect(loc.hash).to.eq('#openAsSplitview-iframe');
});
});
});
Expand Down

0 comments on commit 917cd14

Please sign in to comment.