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

feat: add hostedFields pattern#2 #17744

Merged
merged 22 commits into from
Sep 21, 2023
Merged

feat: add hostedFields pattern#2 #17744

merged 22 commits into from
Sep 21, 2023

Conversation

FollowTheFlo
Copy link
Contributor

@FollowTheFlo FollowTheFlo commented Aug 8, 2023

CXSPA-3879
1- from Verification Page (the existing one), add new logic to extract 'afterRedirectScriptFlag' param from URL.
2- call after-redirections-scripts GET request
3- load dynamic script from its response
4- create global function 'submitCompleteRedirect' and 'getRedirectParams' that will be called by dynamic script from step3

image

@FollowTheFlo FollowTheFlo requested a review from a team as a code owner August 8, 2023 21:19
@FollowTheFlo FollowTheFlo changed the title feat: add hostedields pattern#2 feat: add hostedFields pattern#2 Aug 8, 2023
@github-actions github-actions bot marked this pull request as draft August 29, 2023 18:14
@FollowTheFlo FollowTheFlo marked this pull request as ready for review September 11, 2023 21:46
@cypress
Copy link

cypress bot commented Sep 11, 2023

5 flaky tests on run #41366 ↗︎

0 119 2 0 Flakiness 5

Details:

Merge 588769f into bf507e4...
Project: spartacus Commit: 5e5d867226 ℹ️
Status: Passed Duration: 07:31 💡
Started: Sep 13, 2023 3:17 AM Ended: Sep 13, 2023 3:25 AM
Flakiness  regression/asm/asm.emulation.core-e2e.cy.ts • 1 flaky test • B2C

View Output Video

Test Artifacts
Assisted Service Module > Apparel Site > should fetch products in a category based on the emulated user's authentication Output Screenshots
Flakiness  regression/variants/apparel-checkout-flow.core-e2e.cy.ts • 1 flaky test • B2C

View Output Video

Test Artifacts
Apparel - checkout flow > Mobile > should perform checkout with a registered user Output Screenshots
Flakiness  ssr/pages.core-e2e.cy.ts • 3 flaky tests • SSR

View Output Video

Test Artifacts
SSR > should render homepage Output Screenshots
SSR > should render PLP Output Screenshots
SSR > should render PDP Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions github-actions bot marked this pull request as draft September 12, 2023 03:57
Copy link
Contributor Author

@FollowTheFlo FollowTheFlo Sep 12, 2023

Choose a reason for hiding this comment

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

This service is a duplicate of
spartacus/integration-libs/opf/checkout/core/services/opf-resource-loader.service.ts
It will be handled later in CXSPA-4714. I attempted to put this service in a facade but hit some prob.

@FollowTheFlo FollowTheFlo marked this pull request as ready for review September 12, 2023 20:28
@github-actions github-actions bot marked this pull request as draft September 12, 2023 21:50
@FollowTheFlo FollowTheFlo marked this pull request as ready for review September 13, 2023 03:02
@github-actions github-actions bot marked this pull request as draft September 18, 2023 14:10
@@ -43,17 +45,25 @@ export class OccOpfPaymentAdapter implements OpfPaymentAdapter {
protected config: OpfConfig
) {}

header: { [name: string]: string } = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The header situation is part of CXSPA-4688 that will be merged soon. You can ignore. You won't be able to test it without it.

@rmch91 rmch91 self-requested a review September 21, 2023 10:38
@FollowTheFlo FollowTheFlo marked this pull request as ready for review September 21, 2023 14:52
@FollowTheFlo FollowTheFlo merged commit 6ef7b96 into epic/opf Sep 21, 2023
19 of 20 checks passed
@FollowTheFlo FollowTheFlo deleted the feature/CXSPA-4268 branch September 21, 2023 14:54
@cypress cypress bot mentioned this pull request Sep 21, 2023
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