Skip to content
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

Merged
merged 7 commits into from
Nov 7, 2024

Conversation

VincentUllal
Copy link
Member

Changes proposed in this pull request:

added cypress container tests for openAsModal, openAsDrawer, openAsSplitview

Related issue(s)
resolved #4003

@VincentUllal VincentUllal changed the title added container cypress tests for openAsModal, Drawer and Splitview add container cypress tests for openAsModal, Drawer and Splitview Oct 30, 2024
.click();

cy.location().should(loc => {
expect(loc.href).to.eq('http://localhost:8080/iframe/iframeContainer.html#openAsModal-iframe');
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, thanks :)

@walmazacn walmazacn self-assigned this Nov 6, 2024
@@ -84,6 +84,7 @@ <h3>

[...document.querySelectorAll('luigi-container')].forEach(luigiContainer => {
luigiContainer.addEventListener(MFEventID.NAVIGATION_REQUEST, event => {
// alert("NAVIGATION_REQUEST received");
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops missed these, thanks 👍

Copy link
Contributor

@walmazacn walmazacn left a 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

@VincentUllal VincentUllal merged commit f1f3481 into main Nov 7, 2024
12 checks passed
@VincentUllal VincentUllal deleted the cypress-tests-openAs-requests branch November 7, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Container Cypress test for openAsModal, openAsDrawer, openAsSplitview
2 participants