@shopbite-de/storefront 1.18.1 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/app.vue +3 -9
- package/app/components/Cart/Item.vue +5 -5
- package/app/components/Category/Listing.vue +141 -92
- package/app/components/Checkout/DeliveryTimeSelect.vue +8 -6
- package/app/components/Checkout/PaymentAndDelivery.vue +31 -33
- package/app/components/Checkout/PaymentMethod.vue +1 -1
- package/app/components/Checkout/ShippingMethod.vue +1 -1
- package/app/components/Checkout/Summary.vue +37 -48
- package/app/components/Header/Right.vue +3 -3
- package/app/components/Header/Title.vue +7 -14
- package/app/components/Header.vue +2 -2
- package/app/components/ImageGallery.vue +26 -13
- package/app/components/Product/Card.vue +13 -11
- package/app/components/Product/CardSkeleton.vue +26 -0
- package/app/components/Product/{Detail2.vue → Detail.vue} +1 -1
- package/app/components/User/Detail.vue +2 -2
- package/app/composables/useShopBiteConfig.ts +5 -20
- package/app/pages/bestellung/bestaetigen.vue +14 -0
- package/app/pages/bestellung/warenkorb.vue +49 -0
- package/app/pages/bestellung/zahlung-versand.vue +23 -0
- package/app/pages/bestellung.vue +36 -84
- package/app/pages/index.vue +1 -1
- package/app/pages/kontakt.vue +1 -1
- package/app/pages/speisekarte/[...all].vue +1 -0
- package/app/stores/checkout.ts +22 -0
- package/nuxt.config.ts +5 -0
- package/package.json +3 -1
- package/test/e2e/simple-checkout-as-recurring-customer.test.ts +8 -8
- package/test/nuxt/useShopBiteConfig.test.ts +16 -20
- package/test/nuxt/HeaderTitle.test.ts +0 -42
- /package/app/components/Product/{Configurator2.vue → Configurator.vue} +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, vi } from "vitest";
|
|
2
|
-
import { mountSuspended, mockNuxtImport } from "@nuxt/test-utils/runtime";
|
|
3
|
-
import HeaderTitle from "~/components/Header/Title.vue";
|
|
4
|
-
|
|
5
|
-
const { mockRuntimeConfig } = vi.hoisted(() => ({
|
|
6
|
-
mockRuntimeConfig: {
|
|
7
|
-
app: {
|
|
8
|
-
baseURL: "/",
|
|
9
|
-
},
|
|
10
|
-
public: {
|
|
11
|
-
site: {
|
|
12
|
-
name: "ShopBite Test Store",
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
}));
|
|
17
|
-
|
|
18
|
-
mockNuxtImport("useRuntimeConfig", () => () => mockRuntimeConfig);
|
|
19
|
-
|
|
20
|
-
describe("HeaderTitle", () => {
|
|
21
|
-
it("renders the site name for screen readers", async () => {
|
|
22
|
-
const component = await mountSuspended(HeaderTitle);
|
|
23
|
-
const srOnly = component.find(".sr-only");
|
|
24
|
-
expect(srOnly.exists()).toBe(true);
|
|
25
|
-
expect(srOnly.text()).toBe("ShopBite Test Store");
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it("renders a link to the home page", async () => {
|
|
29
|
-
const component = await mountSuspended(HeaderTitle);
|
|
30
|
-
const link = component.findComponent({ name: "NuxtLink" });
|
|
31
|
-
expect(link.exists()).toBe(true);
|
|
32
|
-
expect(link.props("to")).toBe("/");
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it("renders the logo image", async () => {
|
|
36
|
-
const component = await mountSuspended(HeaderTitle);
|
|
37
|
-
const image = component.findComponent({ name: "UColorModeImage" });
|
|
38
|
-
expect(image.exists()).toBe(true);
|
|
39
|
-
expect(image.props("light")).toBe("/light/Logo.png");
|
|
40
|
-
expect(image.props("dark")).toBe("/dark/Logo.png");
|
|
41
|
-
});
|
|
42
|
-
});
|
|
File without changes
|