fix(store-layout): update checkout countdown logic and test description
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
[displaySeachBar]="tenant()?.display_seach_bar ?? true"
|
[displaySeachBar]="tenant()?.display_seach_bar ?? true"
|
||||||
[displayCart]="displayCart()"
|
[displayCart]="displayCart()"
|
||||||
[cartDisabled]="isCheckoutRoute()"
|
[cartDisabled]="isCheckoutRoute()"
|
||||||
[checkoutRemainingSeconds]="isCheckoutRoute() ? checkoutRemainingSeconds() : null"
|
[checkoutRemainingSeconds]="checkoutRemainingSeconds()"
|
||||||
(cartClick)="onCartClick()"
|
(cartClick)="onCartClick()"
|
||||||
(ticketsClick)="onTicketsClick()"
|
(ticketsClick)="onTicketsClick()"
|
||||||
(loginClick)="onLoginClick()"
|
(loginClick)="onLoginClick()"
|
||||||
|
|||||||
@@ -280,9 +280,7 @@ describe('StoreLayoutComponent', () => {
|
|||||||
expect(element.querySelector('.store-layout__cart-overlay')).toBeNull();
|
expect(element.querySelector('.store-layout__cart-overlay')).toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('shows the synchronized checkout countdown aligned in the header', () => {
|
it('shows the synchronized countdown in the header whenever one is active', () => {
|
||||||
const router = TestBed.inject(Router);
|
|
||||||
vi.spyOn(router, 'url', 'get').mockReturnValue('/checkout/25');
|
|
||||||
checkoutRemainingSecondsState.set(587);
|
checkoutRemainingSecondsState.set(587);
|
||||||
|
|
||||||
const fixture = TestBed.createComponent(StoreLayoutComponent);
|
const fixture = TestBed.createComponent(StoreLayoutComponent);
|
||||||
|
|||||||
Reference in New Issue
Block a user