- Replaced `POSOrderReference.vue` with `OrderAttachmentsActionButton.vue` and added new features like attachment preview, upload, and management. - Introduced `POSOrderCustomerWishes.vue` for handling customer wishes fields with autosave behavior. - Added Playwright global setup/teardown scripts for managing dev server lifecycle during tests. - Enhanced booking flow test utilities and adjusted visibility rules in `bookingFlow.ts`.
23 lines
665 B
TypeScript
23 lines
665 B
TypeScript
import { test } from "@playwright/test";
|
|
import { bookingTestData } from "./fixtures";
|
|
import { completeBookingCreationFlow } from "./support/bookingFlow";
|
|
import { mockApi, primeMockSession } from "./support/network.js";
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await mockApi(page, {
|
|
authenticated: true,
|
|
sessionData: {
|
|
display_name: "Booking User",
|
|
customer_number: 12345679,
|
|
permissions: ["user"],
|
|
},
|
|
pos: true,
|
|
});
|
|
|
|
await primeMockSession(page, { bootPath: "/user" });
|
|
});
|
|
|
|
test("[BOOKINGS][User][Creation] should create a new booking", async ({ page }) => {
|
|
await completeBookingCreationFlow(page, bookingTestData);
|
|
});
|