Skip to content

fix: (CXSPA-9651) Continuum E2Es - Payment Methods #20158

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

Merged

Conversation

StanislavSukhanov
Copy link
Contributor

@StanislavSukhanov StanislavSukhanov self-assigned this Apr 8, 2025
@github-actions github-actions bot marked this pull request as draft April 8, 2025 11:35
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review April 8, 2025 11:35
Copy link
Contributor

github-actions bot commented Apr 8, 2025

Merge Checks Failed

Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@StanislavSukhanov StanislavSukhanov force-pushed the feature/CXSPA-9651-Continuum-E2Es---Payment-Methods branch from 357d56a to 7757e47 Compare April 9, 2025 12:43
@StanislavSukhanov StanislavSukhanov requested a review from a team as a code owner April 9, 2025 12:43
@github-actions github-actions bot marked this pull request as draft April 9, 2025 12:44
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review April 9, 2025 12:47
Copy link

cypress bot commented Apr 9, 2025

spartacus    Run #47798

Run Properties:  status check passed Passed #47798  •  git commit 2389b0a1fc ℹ️: Merge 461f267cf08ee0e0330445d583b7b099e8e011dd into dd3940eb91b8ef86c6dd1637c239...
Project spartacus
Branch Review feature/CXSPA-9651-Continuum-E2Es---Payment-Methods
Run status status check passed Passed #47798
Run duration 04m 44s
Commit git commit 2389b0a1fc ℹ️: Merge 461f267cf08ee0e0330445d583b7b099e8e011dd into dd3940eb91b8ef86c6dd1637c239...
Committer Stanislav Sukhanov
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
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 107
View all changes introduced in this branch ↗︎

@StanislavSukhanov StanislavSukhanov changed the title chore: (CXSPA-9649) Continuum E2Es - Payment Methods fix: (CXSPA-9649) Continuum E2Es - Payment Methods Apr 10, 2025
Comment on lines 17 to 19
it('Page loaded', () => {
cy.get('main').a11yRunContinuumTest();
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait for content to load, otherwise the site is mostly empty.

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.

weird, i've re-checked it I'll check again. Thank you

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 a race between the page loading and AccessEngine being setup. It might be safest to always wait for content to avoid flaky results.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's follow the naming convention.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure.

import { viewportContext } from '../../helpers/viewport-context';

describe('Payment Methods Page accessibility', { testIsolation: false }, () => {
viewportContext(['desktop', 'mobile'], () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

If there are no different elements between the mobile and desktop versions, no need to run this twice.


it('Delete payment method', () => {
cy.get('cx-card').first().find('button').click();
cy.get('main').a11yRunContinuumTest();
Copy link
Contributor

Choose a reason for hiding this comment

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

We can just scan the modified element instead of the whole page again. Let's set the scope to just the unique card.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

roger that

it('set as default', () => {
cy.get('cx-card').eq(1).find('button').first().click();
cy.get('.alert-success').a11yRunContinuumTest();
cy.get('main').a11yRunContinuumTest();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this test do anything different compared to the first main scan?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope. It's just checking if there are no accessibility concerns after the change was made

Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove the last thing since it's been checked previously

@StanislavSukhanov StanislavSukhanov changed the title fix: (CXSPA-9649) Continuum E2Es - Payment Methods fix: (CXSPA-9651) Continuum E2Es - Payment Methods Apr 11, 2025
@StanislavSukhanov StanislavSukhanov force-pushed the feature/CXSPA-9651-Continuum-E2Es---Payment-Methods branch from 7757e47 to 8b0f407 Compare April 11, 2025 15:01
@github-actions github-actions bot marked this pull request as draft April 11, 2025 15:01
Copy link
Contributor

@Pio-Bar Pio-Bar 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! just a minor nitpick. 😉

import { viewportContext } from '../../helpers/viewport-context';

describe('Payment Methods Page accessibility', { testIsolation: false }, () => {
viewportContext(['desktop'], () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the desktop is the default, I think this might be redundant?

@StanislavSukhanov StanislavSukhanov force-pushed the feature/CXSPA-9651-Continuum-E2Es---Payment-Methods branch from 8b0f407 to 5dea72a Compare April 14, 2025 11:49
Pio-Bar
Pio-Bar previously approved these changes Apr 14, 2025
describe('Payment Methods Page accessibility', { testIsolation: false }, () => {
before(() => {
cy.a11yContinuumSetup();
cy.login('[email protected]', 'pw4all');
Copy link
Contributor

Choose a reason for hiding this comment

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

We should import the credentials from local sample data files. There should be examples of this in other tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

before(() => {
cy.a11yContinuumSetup();
cy.login('[email protected]', 'pw4all');
cy.visit('/my-account/payment-details');
Copy link
Contributor

Choose a reason for hiding this comment

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

When I logged in with this user, there were no existing payment methods available. Did you create this user or find it from somewhere? Any new user would need sample data created so I'd check out using the standard user from sampledata to see if it has some payment details already there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

* introduced a new test suite for checking accessibility concerns for order history
* addressed accessibility concerns found by a test.

* closes: https://jira.tools.sap/browse/CXSPA-9651
* introduced a new test suite for checking accessibility concerns for order history
* addressed accessibility concerns found by a test.

* closes: https://jira.tools.sap/browse/CXSPA-9651
* introduced a new test suite for checking accessibility concerns for order history
* addressed accessibility concerns found by a test.

* closes: https://jira.tools.sap/browse/CXSPA-9651
* introduced a new test suite for checking accessibility concerns for order history
* addressed accessibility concerns found by a test.

* closes: https://jira.tools.sap/browse/CXSPA-9651
@StanislavSukhanov StanislavSukhanov force-pushed the feature/CXSPA-9651-Continuum-E2Es---Payment-Methods branch from 5dea72a to efe7883 Compare April 17, 2025 11:02
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review April 17, 2025 11:04
@github-actions github-actions bot marked this pull request as draft April 22, 2025 07:51
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review April 22, 2025 08:01
@StanislavSukhanov StanislavSukhanov merged commit 3f2eab5 into develop Apr 22, 2025
30 checks passed
@StanislavSukhanov StanislavSukhanov deleted the feature/CXSPA-9651-Continuum-E2Es---Payment-Methods branch April 22, 2025 08:24
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.

3 participants