Skip to content

feat: (CXSPA-9820) - Add access continuum test for Applied Promotions #20281

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

petarmarkov9449
Copy link
Contributor

Ticket: CXSPA-9820

Add access continuum test for Applied Promotions

@github-actions github-actions bot marked this pull request as draft May 8, 2025 09:34
@petarmarkov9449 petarmarkov9449 marked this pull request as ready for review May 8, 2025 10:52
Copy link

cypress bot commented May 8, 2025

spartacus    Run #48394

Run Properties:  status check passed Passed #48394  •  git commit 5c57445a1d ℹ️: Merge 8ee639729c2165ead978a9e8f56902250879b00a into a7fb6bd55bb764ad73a1ca6bc45b...
Project spartacus
Branch Review feature/CXSPA-9820
Run status status check passed Passed #48394
Run duration 06m 12s
Commit git commit 5c57445a1d ℹ️: Merge 8ee639729c2165ead978a9e8f56902250879b00a into a7fb6bd55bb764ad73a1ca6bc45b...
Committer petarmarkov9449
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 4
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 238
View all changes introduced in this branch ↗︎

Comment on lines 23 to 25
cy.get('cx-mini-cart').click();

cy.get('.cx-promotions').a11yRunContinuumTest();
Copy link
Contributor

Choose a reason for hiding this comment

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

I see the intention is to run this on the cart page however, with this setup the test runs on PDP instead.

@github-actions github-actions bot marked this pull request as draft May 14, 2025 09:25
@petarmarkov9449 petarmarkov9449 marked this pull request as ready for review May 14, 2025 09:35
@petarmarkov9449 petarmarkov9449 requested a review from Pio-Bar May 14, 2025 11:35
it('should show promotions on Cart page', () => {
cy.get('cx-mini-cart').click();

cy.get('.cart-details-wrapper').should('exist');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
cy.get('.cart-details-wrapper').should('exist');
cy.get('.cart-details-wrapper')


cy.get('.cart-details-wrapper').should('exist');

cy.get('.cx-promotions').a11yRunContinuumTest();
Copy link
Contributor

Choose a reason for hiding this comment

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

Selectors before the tests return more than one element. With our current setup Continuum will only scan the first one. Do we want to scan each or is this enough? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is only one cx-promotions in cart page, isn't there? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

There's two. Same goes for the previous one. In the 'add to cart' test only an empty div gets scanned.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the test for all promotions here.

@petarmarkov9449 petarmarkov9449 requested a review from Pio-Bar May 15, 2025 08:44
@github-actions github-actions bot marked this pull request as draft May 19, 2025 08:25
@petarmarkov9449 petarmarkov9449 marked this pull request as ready for review May 19, 2025 09:18
@github-actions github-actions bot marked this pull request as draft May 19, 2025 12:43
@petarmarkov9449 petarmarkov9449 marked this pull request as ready for review May 22, 2025 12:07
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.

2 participants