-
Notifications
You must be signed in to change notification settings - Fork 394
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
test: add PDP/PLP add to cart dialog e2e test #20102
base: develop
Are you sure you want to change the base?
Conversation
spartacus
|
Project |
spartacus
|
Branch Review |
feature/CXSPA-9645
|
Run status |
|
Run duration | 05m 13s |
Commit |
|
Committer | Uros Lates |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
5
|
|
0
|
|
0
|
|
102
|
View all changes introduced in this branch ↗︎ |
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.
Let's pull the latest develop changes and use the new a11yRunContinuumTest command.
}); | ||
}); | ||
|
||
context('Add to Cart (PLP)', () => { |
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.
Is the modal triggered from a PLP any different to the one from elsewhere? If not, would one test be enough?
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.
Removed
cy.get('cx-added-to-cart-dialog') | ||
.get('.cx-modal-content') | ||
.a11yRunContinuumTest(); |
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.
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.
Applied.
it('Item Added to Cart Dialog', () => { | ||
cy.visit(siteContextSelector.PRODUCT_PATH_2); | ||
cy.get('cx-add-to-cart button[type=submit]').click(); | ||
cy.get('cx-added-to-cart-dialog .cx-modal-content cx-cart-item') |
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.
cy.get('cx-added-to-cart-dialog .cx-modal-content cx-cart-item')
is fine for making sure that the dialog has loaded first. But then we should run the scope of this test on the entire dialog DOM.
cy.get('cx-added-to-cart-dialog').a11yRunContinuumTest();
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.
Applied!
Closes: https://jira.tools.sap/browse/CXSPA-9645