-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add container cypress tests for openAsModal, Drawer and Splitview #4004
Conversation
.click(); | ||
|
||
cy.location().should(loc => { | ||
expect(loc.href).to.eq('http://localhost:8080/iframe/iframeContainer.html#openAsModal-iframe'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's safer to check only hash instead of full url - it also relates to test cases below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, thanks :)
container/test-app/wc/clientAPI.html
Outdated
@@ -84,6 +84,7 @@ <h3> | |||
|
|||
[...document.querySelectorAll('luigi-container')].forEach(luigiContainer => { | |||
luigiContainer.addEventListener(MFEventID.NAVIGATION_REQUEST, event => { | |||
// alert("NAVIGATION_REQUEST received"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This alert might be removed - same applies to line 115
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops missed these, thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - all test are passing
Changes proposed in this pull request:
added cypress container tests for openAsModal, openAsDrawer, openAsSplitview
Related issue(s)
resolved #4003