-
Notifications
You must be signed in to change notification settings - Fork 403
fix: add Continuum E2Es for B2B My Company #20341
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
Conversation
Merge Checks Failed |
spartacus
|
||||||||||||||||||||||||||||
| Project |
spartacus
|
| Branch Review |
feature/CXSPA-10033-b2b-mycompany
|
| Run status |
|
| Run duration | 03m 47s |
| Commit |
|
| Committer | Uros Lates |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
3
|
|
|
2
|
|
|
0
|
|
|
99
|
| View all changes introduced in this branch ↗︎ | |
Merge Checks Failed |
1 similar comment
Merge Checks Failed |
Merge Checks Failed |
Pio-Bar
left a comment
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.
Solid work! My only minor gripe is the use of the overly long selectors. The tests work really well as is but, it makes reading the tests bit confusing.
cy.get('cx-org-unit-details cx-org-card cx-view .main .details .property a[href="/powertools-spa/en/USD/organization/units/Rustic"]' );
Consider replacing with:
cy.get('a').contains(' Rustic ');
| it('initial page load', () => { | ||
| cy.get('main cx-view cx-table table'); | ||
| cy.get('main').a11yRunContinuumTest(); | ||
| }); | ||
|
|
||
| it('page loaded', () => { | ||
| cy.get('#Rustic'); | ||
| cy.get('main').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.
Isn't running the scan after the page is fully loaded sufficient? I've seen this repeated in the other files too.
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.
Well in first case its testing skeleton components (where content isn't loaded still) - which in few cases had a11y issues caught by continuum. The second one is validating loaded state (actual table with data).
If this isn't required I can remove the fist one.
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.
Testing the skeleton makes sense I would keep it. Let's replace 'initial page load' with sth that makes it clear that the skeleton is the target. At the same time, we need to make sure the skeleton is actually present for the test. Is there a way we could avoid the possible race condition here?
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.
Addressed!
| cy.get('main').a11yRunContinuumTest(); | ||
| }); | ||
|
|
||
| it('account summaries details / initial panel', () => { |
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.
We should also include a test with the document list populated. The one tested here is empty.
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 couldn't find any that has documents. They are all empty.
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.
Good catch! Thanks. Applied!
| cy.get('main').a11yRunContinuumTest(); | ||
| }); | ||
|
|
||
| // it('account summaries details / edit panel', () => { |
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.
Shouldn't the commented code be cleaned up?
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!
| cy.get('body').a11yRunContinuumTest(); | ||
| }); | ||
|
|
||
| it('unit details / delivery addresses list panel', () => { |
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.
Addressed! 👍
Merge Checks Failed |
| 'cx-org-unit-details cx-org-card cx-view .main .details .property a[href="/powertools-spa/en/USD/organization/units/Rustic"]' | ||
| ); | ||
| cy.get('[id="Rustic"]').click(); | ||
| cy.get('a').contains('Rustic'); |
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!
Merge Checks Failed |
Merge Checks Failed |
Merge Checks Failed |



Closes CXSPA-10033