diff --git a/src/app/core/layout/store-layout/store-layout.component.html b/src/app/core/layout/store-layout/store-layout.component.html index 01f5dfe..e3113a9 100644 --- a/src/app/core/layout/store-layout/store-layout.component.html +++ b/src/app/core/layout/store-layout/store-layout.component.html @@ -13,7 +13,7 @@ [displaySeachBar]="tenant()?.display_seach_bar ?? true" [displayCart]="displayCart()" [cartDisabled]="isCheckoutRoute()" - [checkoutRemainingSeconds]="isCheckoutRoute() ? checkoutRemainingSeconds() : null" + [checkoutRemainingSeconds]="checkoutRemainingSeconds()" (cartClick)="onCartClick()" (ticketsClick)="onTicketsClick()" (loginClick)="onLoginClick()" diff --git a/src/app/core/layout/store-layout/store-layout.component.spec.ts b/src/app/core/layout/store-layout/store-layout.component.spec.ts index b222a46..28be962 100644 --- a/src/app/core/layout/store-layout/store-layout.component.spec.ts +++ b/src/app/core/layout/store-layout/store-layout.component.spec.ts @@ -280,9 +280,7 @@ describe('StoreLayoutComponent', () => { expect(element.querySelector('.store-layout__cart-overlay')).toBeNull(); }); - it('shows the synchronized checkout countdown aligned in the header', () => { - const router = TestBed.inject(Router); - vi.spyOn(router, 'url', 'get').mockReturnValue('/checkout/25'); + it('shows the synchronized countdown in the header whenever one is active', () => { checkoutRemainingSecondsState.set(587); const fixture = TestBed.createComponent(StoreLayoutComponent);