From 4b49b18adafbe835fe7251b00f8f2e836789900f Mon Sep 17 00:00:00 2001 From: PioBar <72926984+Pio-Bar@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:40:23 +0200 Subject: [PATCH] fix: (CXSPA-1088) - Removed all loaded status role attributes (#19107) --- .../clear-cart-dialog.component.html | 1 + .../saved-cart-details-items.component.html | 6 +++++- .../saved-cart-details-items.component.spec.ts | 3 ++- .../components/details/saved-cart-details.module.ts | 2 ++ .../components/list/saved-cart-list.component.html | 6 +++++- .../list/saved-cart-list.component.spec.ts | 3 ++- .../components/list/saved-cart-list.module.ts | 2 ++ .../checkout-delivery-address.component.html | 6 +++++- .../checkout-delivery-address.component.spec.ts | 2 ++ .../checkout-delivery-address.module.ts | 10 ++++++++-- .../checkout-payment-type.component.html | 6 +++++- .../checkout-payment-type.component.spec.ts | 7 ++++++- .../checkout-payment-type.module.ts | 8 +++++++- .../checkout-delivery-address.component.html | 6 +++++- .../checkout-delivery-address.module.ts | 8 +++++++- .../checkout-delivery-mode.component.html | 12 ++++++++++-- .../checkout-payment-form.component.html | 6 +++++- .../checkout-payment-method.component.html | 6 +++++- .../checkout-payment-method.component.spec.ts | 2 ++ .../checkout-payment-method.module.ts | 8 +++++++- .../order-approval-detail-form.component.html | 6 +++++- .../form/user-registration-form.component.html | 6 +++++- .../container/store-list/store-list.component.html | 6 +++++- .../store-list/store-list.component.spec.ts | 3 ++- .../container/store-list/store-list.module.ts | 11 +++++++++-- .../quote/components/list/quote-list.component.html | 6 +++++- .../components/list/quote-list.component.spec.ts | 2 ++ .../quote/components/list/quote-list.module.ts | 2 ++ .../store-finder-grid.component.html | 6 +++++- .../store-finder-grid.component.spec.ts | 2 ++ .../store-finder-search-result.component.html | 6 +++++- .../store-finder-search-result.component.spec.ts | 9 +++++---- .../store-finder-store.component.html | 6 +++++- .../store-finder-store.component.spec.ts | 2 ++ .../store-finder-stores-count.component.html | 6 +++++- .../store-finder-stores-count.component.spec.ts | 9 +++++---- .../address-book/address-book.component.html | 1 + .../address-book/address-book.component.spec.ts | 9 +++++++-- .../components/address-book/address-book.module.ts | 4 +++- .../components/register/register.component.html | 6 +++++- .../dp-payment-method.component.html | 1 + .../dp-payment-method/dp-payment-method.module.ts | 4 +++- .../visual-viewer/visual-viewer.component.html | 6 +++++- .../components/visual-viewer/visual-viewer.module.ts | 3 ++- .../feature-toggles/config/feature-toggles.ts | 7 +++++++ .../src/app/spartacus/spartacus-features.module.ts | 1 + .../components/consent-management.component.html | 7 ++++++- .../my-account-v2-consent-management.component.html | 6 +++++- ...y-account-v2-consent-management.component.spec.ts | 4 +++- .../my-account-v2-consent-management.module.ts | 7 ++++--- ...account-v2-notification-preference.component.html | 6 +++++- .../my-account-v2-notification-preference.module.ts | 5 +++-- .../my-account-v2-notification-preference.spec.ts | 12 +++++++----- .../myaccount/my-coupons/my-coupons.component.html | 6 +++++- .../my-coupons/my-coupons.component.spec.ts | 2 ++ .../my-interests/my-interests.component.html | 6 +++++- .../my-interests/my-interests.component.spec.ts | 2 ++ .../myaccount/my-interests/my-interests.module.ts | 4 +++- .../notification-preference.component.html | 6 +++++- .../payment-methods/payment-methods.component.html | 1 + .../payment-methods.component.spec.ts | 2 ++ .../stock-notification-dialog.component.html | 1 + .../stock-notification.component.html | 6 +++++- .../stock-notification.component.spec.ts | 4 +++- .../stock-notification/stock-notification.module.ts | 1 + .../anonymous-consent-dialog.component.html | 1 + .../anonymous-consent-dialog.component.spec.ts | 8 +++++--- 67 files changed, 271 insertions(+), 66 deletions(-) diff --git a/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.html b/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.html index 9a0591fed46..82f0817a62d 100644 --- a/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.html +++ b/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.html @@ -8,6 +8,7 @@
diff --git a/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.html b/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.html index bea5e51664e..ac857558bee 100644 --- a/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.html +++ b/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.html @@ -1,6 +1,10 @@ -
+
{ beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [StoreModule.forRoot({}), I18nTestingModule, OutletModule], - declarations: [SavedCartDetailsItemsComponent], + declarations: [SavedCartDetailsItemsComponent, MockFeatureDirective], providers: [ { provide: SavedCartFacade, diff --git a/feature-libs/cart/saved-cart/components/details/saved-cart-details.module.ts b/feature-libs/cart/saved-cart/components/details/saved-cart-details.module.ts index a1bc2368765..e332f60a78d 100644 --- a/feature-libs/cart/saved-cart/components/details/saved-cart-details.module.ts +++ b/feature-libs/cart/saved-cart/components/details/saved-cart-details.module.ts @@ -12,6 +12,7 @@ import { AuthGuard, CmsConfig, ConfigModule, + FeaturesConfigModule, I18nModule, UrlModule, } from '@spartacus/core'; @@ -54,6 +55,7 @@ import { SavedCartDetailsOverviewComponent } from './saved-cart-details-overview }, }, }), + FeaturesConfigModule, ], declarations: [ SavedCartDetailsOverviewComponent, diff --git a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.html b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.html index bc0c3785716..086e275ad93 100644 --- a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.html +++ b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.html @@ -1,6 +1,10 @@ -
+

{{ diff --git a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts index 37c7ea68bf5..13da4e71817 100644 --- a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts +++ b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts @@ -23,6 +23,7 @@ import { LaunchDialogService, SiteContextComponentService, } from '@spartacus/storefront'; +import { MockFeatureDirective } from 'projects/storefrontlib/shared/test/mock-feature-directive'; import { EMPTY, Observable, Subscription, interval, map, of, take } from 'rxjs'; import { SavedCartListComponent } from './saved-cart-list.component'; @@ -109,7 +110,7 @@ describe('SavedCartListComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [I18nTestingModule, RouterTestingModule], - declarations: [SavedCartListComponent, MockUrlPipe], + declarations: [SavedCartListComponent, MockUrlPipe, MockFeatureDirective], providers: [ { provide: RoutingService, useClass: MockRoutingService }, { provide: SavedCartFacade, useClass: MockSavedCartFacade }, diff --git a/feature-libs/cart/saved-cart/components/list/saved-cart-list.module.ts b/feature-libs/cart/saved-cart/components/list/saved-cart-list.module.ts index e967954f77e..86ecaff0b28 100644 --- a/feature-libs/cart/saved-cart/components/list/saved-cart-list.module.ts +++ b/feature-libs/cart/saved-cart/components/list/saved-cart-list.module.ts @@ -10,6 +10,7 @@ import { RouterModule } from '@angular/router'; import { AuthGuard, CmsConfig, + FeaturesConfigModule, I18nModule, provideDefaultConfig, UrlModule, @@ -25,6 +26,7 @@ import { SavedCartListComponent } from './saved-cart-list.component'; ListNavigationModule, I18nModule, SpinnerModule, + FeaturesConfigModule, ], providers: [ provideDefaultConfig({ diff --git a/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.html b/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.html index 7790af838f4..f72701b8ad8 100644 --- a/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.html +++ b/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.html @@ -4,7 +4,11 @@

-
+
else loading " > -
+