SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
726 stars 372 forks source link

fix: CXSPA-7665 Remove circular dependency from organization config factories #19014

Closed pawelfras closed 1 week ago

pawelfras commented 1 week ago

PR contains a fix for an issue spotted by the FSA team, related to circular DI in config factories for organisation components. If a configuration of the Config subclass depends on a feature toggle, we should inject FeatureToggles instead of FeatureConfigService which depends on Config as well. In addition, factory deps have been removed in favour of the inject function to reduce the amount of possible breaking changes in the future.

QA steps:

Note: This change was made around a11yOrganizationLinkableCells toggle (for more, see: CXSPA-1795. To test whether its functionality works:

closes CXSPA-7665

cypress[bot] commented 1 week ago

5 flaky tests on run #44172 ↗︎

0 119 2 0 Flakiness 5

Details:

Merge 3765cc2cba7f47f83b192f6391dfc910f322f610 into 2c46b3769f03a3eb8a1add3efa54...
Project: spartacus Commit: 3ba8850bad ℹ️
Status: Passed Duration: 04:13 💡
Started: Jun 28, 2024 1:36 PM Ended: Jun 28, 2024 1:40 PM
Flakiness  regression/checkout/checkout-flow.core-e2e.cy.ts • 1 flaky test • B2C View Output Video
Test Artifacts
Checkout flow > Mobile > should checkout with a registered user Test Replay Screenshots Video
Flakiness  b2b/regression/checkout/b2b-credit-card-checkout-flow.core-e2e.cy.ts • 1 flaky test • B2B View Output Video
Test Artifacts
B2B - Credit Card Checkout flow > should checkout using a credit card Test Replay Screenshots Video
Flakiness  ssr/pages.core-e2e.cy.ts • 3 flaky tests • SSR View Output Video
Test Artifacts
SSR > should render homepage Test Replay Screenshots Video
SSR > should render PLP Test Replay Screenshots Video
SSR > should render PDP Test Replay Screenshots Video

Review all test suite changes for PR #19014 ↗︎