# Instructions - Following Playwright test failed. - Explain why, be concise, respect Playwright best practices. - Provide a snippet of code with the fix, if possible. # Test info - Name: src/manager/tests/e2e/booking/booking-create.spec.ts >> rejects a sepa booking over the payment amount limit - Location: src/manager/tests/e2e/booking/booking-create.spec.ts:989:5 # Error details ``` Error: expect(locator).toBeVisible() failed Locator: locator('.v-snackbar').filter({ hasText: 'Max billing amount exceeded for payment method type' }) Expected: visible Timeout: 30000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 30000ms - waiting for locator('.v-snackbar').filter({ hasText: 'Max billing amount exceeded for payment method type' }) ``` ```yaml - navigation: - link: - /url: / - text: KINNOVIS Manager - button: - img - list: - text: Dashboard - link "Tasks": - /url: /tasks - img - text: Tasks - link "Facility maps": - /url: /facility-map - link "Analytics": - /url: /dashboard - text: Sales - link "Bookings": - /url: /bookings - link "Customers": - /url: /customers - link "Invoices": - /url: /invoices - link "Credit notes": - /url: /credit-notes - img - text: Credit notes - link "Units": - /url: /units - text: Site management - link "Locations": - /url: /locations - link "Unit types": - /url: /unit-types - link "Protection Plans": - /url: /insurances - link "Deposits": - /url: /deposits - link "Products": - /url: /products - link "Discounts": - /url: /discounts - option "Emails" - link "Document templates": - /url: /document-templates - text: Admin - link "Integrations": - /url: /connected-apps - link "User & Roles": - /url: /users - option "Booking Portal" - option "JaneAI" - text: Feedback - link "Voting Portal": - /url: /voting-portal - button "AS Andreas Stadler andreas.stadler@storeroom.at" - button - main: - text: Bookings - link "Create booking": - /url: /bookings/create - button - button "Filters Reset filters": - heading "Filters" [level=3] - button "Reset filters" - text: Search - textbox "Search" - combobox: - text: Location - combobox "Location" - combobox: - text: Status - combobox "Status" - combobox: - text: ID verification status - combobox "ID verification status" - combobox: - text: Access status - combobox "Access status" - combobox: - text: Unit type - combobox "Unit type" - text: Created at - textbox "Created at" - button "Select all" - button "Price adjustment" [disabled]: - img - text: Price adjustment - button "Remove price adjustment" [disabled] - button: - img - table: - rowgroup: - row "Booking number Location Status Customer Unit type Unit Booking plan Next invoice Created at Move-in Move-out": - columnheader: - checkbox - columnheader "Booking number": - button "Booking number" - columnheader "Location": - button "Location" - columnheader "Status": - button "Status" - columnheader "Customer": - button "Customer" - columnheader "Unit type" - columnheader "Unit": - button "Unit" - columnheader "Booking plan": - button "Booking plan" - columnheader "Next invoice": - button "Next invoice" - columnheader "Created at": - button "Created at" - columnheader "Move-in": - button "Move-in" - columnheader "Move-out": - button "Move-out" - row: - columnheader - rowgroup: - row "5975-7685-6433-542 Vienna South Active Norman Streich Practical Box zgRepW Unit X238rR Basic (1 month) 29 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "5975-7685-6433-542": - link "5975-7685-6433-542": - /url: /bookings/597576856433542 - cell "Vienna South": - link "Vienna South": - /url: /bookings/597576856433542 - cell "Active": - link "Active": - /url: /bookings/597576856433542 - cell "Norman Streich": - link "Norman Streich": - /url: /bookings/597576856433542 - cell "Practical Box zgRepW": - link "Practical Box zgRepW": - /url: /bookings/597576856433542 - cell "Unit X238rR": - link "Unit X238rR": - /url: /bookings/597576856433542 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/597576856433542 - cell "29 Sep 2026": - link "29 Sep 2026": - /url: /bookings/597576856433542 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/597576856433542 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/597576856433542 - cell: - link: - /url: /bookings/597576856433542 - row "7217-1839-9171-735 Vienna South Active Theresa McClure Incredible Box vpood8 Unit 1TsZUd Basic (1 month) 19 Sep 2026 29 Aug 2026 19 Aug 2026": - cell: - checkbox - cell "7217-1839-9171-735": - link "7217-1839-9171-735": - /url: /bookings/721718399171735 - cell "Vienna South": - link "Vienna South": - /url: /bookings/721718399171735 - cell "Active": - link "Active": - /url: /bookings/721718399171735 - cell "Theresa McClure": - link "Theresa McClure": - /url: /bookings/721718399171735 - cell "Incredible Box vpood8": - link "Incredible Box vpood8": - /url: /bookings/721718399171735 - cell "Unit 1TsZUd": - link "Unit 1TsZUd": - /url: /bookings/721718399171735 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/721718399171735 - cell "19 Sep 2026": - link "19 Sep 2026": - /url: /bookings/721718399171735 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/721718399171735 - cell "19 Aug 2026": - link "19 Aug 2026": - /url: /bookings/721718399171735 - cell: - link: - /url: /bookings/721718399171735 - row "3163-6286-1122-63 Vienna South Active Joy Yundt Elegant Box sWVv50 Unit MYI1SB Basic (1 month) 29 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "3163-6286-1122-63": - link "3163-6286-1122-63": - /url: /bookings/31636286112263 - cell "Vienna South": - link "Vienna South": - /url: /bookings/31636286112263 - cell "Active": - link "Active": - /url: /bookings/31636286112263 - cell "Joy Yundt": - link "Joy Yundt": - /url: /bookings/31636286112263 - cell "Elegant Box sWVv50": - link "Elegant Box sWVv50": - /url: /bookings/31636286112263 - cell "Unit MYI1SB": - link "Unit MYI1SB": - /url: /bookings/31636286112263 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/31636286112263 - cell "29 Sep 2026": - link "29 Sep 2026": - /url: /bookings/31636286112263 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/31636286112263 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/31636286112263 - cell: - link: - /url: /bookings/31636286112263 - row "2342-4735-5979-12 Vienna South Active Macy Mayer Rustic Box UuTEH2 Unit Dkuniv Basic (1 month) 29 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "2342-4735-5979-12": - link "2342-4735-5979-12": - /url: /bookings/23424735597912 - cell "Vienna South": - link "Vienna South": - /url: /bookings/23424735597912 - cell "Active": - link "Active": - /url: /bookings/23424735597912 - cell "Macy Mayer": - link "Macy Mayer": - /url: /bookings/23424735597912 - cell "Rustic Box UuTEH2": - link "Rustic Box UuTEH2": - /url: /bookings/23424735597912 - cell "Unit Dkuniv": - link "Unit Dkuniv": - /url: /bookings/23424735597912 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/23424735597912 - cell "29 Sep 2026": - link "29 Sep 2026": - /url: /bookings/23424735597912 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/23424735597912 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/23424735597912 - cell: - link: - /url: /bookings/23424735597912 - row "8738-3929-9235-567 Vienna South Active Vance Mraz Ergonomic Box PSvIK1 Unit nQbDfB Basic (1 week) 5 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "8738-3929-9235-567": - link "8738-3929-9235-567": - /url: /bookings/873839299235567 - cell "Vienna South": - link "Vienna South": - /url: /bookings/873839299235567 - cell "Active": - link "Active": - /url: /bookings/873839299235567 - cell "Vance Mraz": - link "Vance Mraz": - /url: /bookings/873839299235567 - cell "Ergonomic Box PSvIK1": - link "Ergonomic Box PSvIK1": - /url: /bookings/873839299235567 - cell "Unit nQbDfB": - link "Unit nQbDfB": - /url: /bookings/873839299235567 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/873839299235567 - cell "5 Sep 2026": - link "5 Sep 2026": - /url: /bookings/873839299235567 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/873839299235567 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/873839299235567 - cell: - link: - /url: /bookings/873839299235567 - row "3163-6276-8732-742 Vienna South Active Mariana VonRueden Oriental Box ngPfA3 Unit 5lD86n Basic (1 week) 5 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "3163-6276-8732-742": - link "3163-6276-8732-742": - /url: /bookings/316362768732742 - cell "Vienna South": - link "Vienna South": - /url: /bookings/316362768732742 - cell "Active": - link "Active": - /url: /bookings/316362768732742 - cell "Mariana VonRueden": - link "Mariana VonRueden": - /url: /bookings/316362768732742 - cell "Oriental Box ngPfA3": - link "Oriental Box ngPfA3": - /url: /bookings/316362768732742 - cell "Unit 5lD86n": - link "Unit 5lD86n": - /url: /bookings/316362768732742 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/316362768732742 - cell "5 Sep 2026": - link "5 Sep 2026": - /url: /bookings/316362768732742 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/316362768732742 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/316362768732742 - cell: - link: - /url: /bookings/316362768732742 - row "3163-6283-4184-76 Vienna South Active Annette Ziemann Practical Box JNmfN0 Unit YltXFq Basic (1 week) 5 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "3163-6283-4184-76": - link "3163-6283-4184-76": - /url: /bookings/31636283418476 - cell "Vienna South": - link "Vienna South": - /url: /bookings/31636283418476 - cell "Active": - link "Active": - /url: /bookings/31636283418476 - cell "Annette Ziemann": - link "Annette Ziemann": - /url: /bookings/31636283418476 - cell "Practical Box JNmfN0": - link "Practical Box JNmfN0": - /url: /bookings/31636283418476 - cell "Unit YltXFq": - link "Unit YltXFq": - /url: /bookings/31636283418476 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/31636283418476 - cell "5 Sep 2026": - link "5 Sep 2026": - /url: /bookings/31636283418476 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/31636283418476 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/31636283418476 - cell: - link: - /url: /bookings/31636283418476 - row "2342-4732-4131-1 Vienna South Active Barry Torp Licensed Box U3jVOT Unit SrJMl3 Basic (1 week) 5 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "2342-4732-4131-1": - link "2342-4732-4131-1": - /url: /bookings/2342473241311 - cell "Vienna South": - link "Vienna South": - /url: /bookings/2342473241311 - cell "Active": - link "Active": - /url: /bookings/2342473241311 - cell "Barry Torp": - link "Barry Torp": - /url: /bookings/2342473241311 - cell "Licensed Box U3jVOT": - link "Licensed Box U3jVOT": - /url: /bookings/2342473241311 - cell "Unit SrJMl3": - link "Unit SrJMl3": - /url: /bookings/2342473241311 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/2342473241311 - cell "5 Sep 2026": - link "5 Sep 2026": - /url: /bookings/2342473241311 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/2342473241311 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/2342473241311 - cell: - link: - /url: /bookings/2342473241311 - row "8738-3952-9455-866 Vienna South Active Alisha Bernier Handcrafted Box b9xafR Unit 51VJHe Basic (1 week) 5 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "8738-3952-9455-866": - link "8738-3952-9455-866": - /url: /bookings/873839529455866 - cell "Vienna South": - link "Vienna South": - /url: /bookings/873839529455866 - cell "Active": - link "Active": - /url: /bookings/873839529455866 - cell "Alisha Bernier": - link "Alisha Bernier": - /url: /bookings/873839529455866 - cell "Handcrafted Box b9xafR": - link "Handcrafted Box b9xafR": - /url: /bookings/873839529455866 - cell "Unit 51VJHe": - link "Unit 51VJHe": - /url: /bookings/873839529455866 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/873839529455866 - cell "5 Sep 2026": - link "5 Sep 2026": - /url: /bookings/873839529455866 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/873839529455866 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/873839529455866 - cell: - link: - /url: /bookings/873839529455866 - row "7217-1874-3989-91 Vienna South Active Luis Botsford Soft Box 1WVC27 Unit yt6AmH Basic (1 week) 5 Sep 2026 29 Aug 2026 29 Aug 2026": - cell: - checkbox - cell "7217-1874-3989-91": - link "7217-1874-3989-91": - /url: /bookings/72171874398991 - cell "Vienna South": - link "Vienna South": - /url: /bookings/72171874398991 - cell "Active": - link "Active": - /url: /bookings/72171874398991 - cell "Luis Botsford": - link "Luis Botsford": - /url: /bookings/72171874398991 - cell "Soft Box 1WVC27": - link "Soft Box 1WVC27": - /url: /bookings/72171874398991 - cell "Unit yt6AmH": - link "Unit yt6AmH": - /url: /bookings/72171874398991 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/72171874398991 - cell "5 Sep 2026": - link "5 Sep 2026": - /url: /bookings/72171874398991 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/72171874398991 - cell "29 Aug 2026": - link "29 Aug 2026": - /url: /bookings/72171874398991 - cell: - link: - /url: /bookings/72171874398991 - text: "Items per page:" - combobox: - text: "10" - combobox "Items per page:": "10" - text: 1-10 of 142 - button [disabled] - button [disabled] - button - button - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - dialog: - button - heading "Create booking" [level=2] - button "Save" - separator - group "General": - heading "General" [level=3] - combobox: - text: Kellie Hettinger (marilyn_hyatt@gmail.com) - combobox "Customer *" - text: Customer * - alert - combobox: - text: Vienna South - combobox "Location *" - text: Location * - alert - textbox "Move-in date *": - /placeholder: dd/mm/yyyy - text: 29/08/2026 - text: Move-in date * - alert - text: Note - textbox "Note" - alert - group "Products": - heading "Products" [level=3] - table: - rowgroup: - row "Recurring Booking Period Quantity Price VAT Amount": - columnheader "Recurring" - columnheader "Booking Period" - columnheader "Quantity" - columnheader "Price" - columnheader "VAT" - columnheader "Amount" - rowgroup: - row "€11,000.00 17% €11,000.00": - cell: - combobox: - text: Modern Box qwAln9 - combobox "Unit type *" - text: Unit type * - alert - combobox: - text: Unit dvBwKI - combobox "Unit *" - text: Unit * - alert - cell: - combobox: - text: Basic (1 month) - combobox "Booking plan *" - text: Booking plan * - alert - cell - cell "€11,000.00" - cell "17%" - cell "€11,000.00" - table: - rowgroup: - row: - cell: - combobox: - text: Protection plan - combobox "Protection plan" - alert - cell - cell - cell - cell - cell - table - button "Add recurring product" [disabled] - table: - rowgroup: - row "One time Quantity Price VAT Amount": - columnheader "One time" - columnheader - columnheader "Quantity" - columnheader "Price" - columnheader "VAT" - columnheader "Amount" - button "Add one-time product" - table: - rowgroup: - row "Deposit Quantity Price VAT Amount": - columnheader "Deposit" - columnheader - columnheader "Quantity" - columnheader "Price" - columnheader "VAT" - columnheader "Amount" - rowgroup: - row: - cell: - combobox: - text: Deposit - combobox "Deposit" - alert - cell - cell - cell - cell - cell - table: - rowgroup: - row "Discount Terms Price Amount": - columnheader "Discount" - columnheader "Terms" - columnheader - columnheader "Price" - columnheader - columnheader "Amount" - button "Add discount" [disabled] - text: Total excl.VAT €11,000.00 VAT €1,870.00 Total incl.VAT €12,870.00 - group "Payment": - heading "Payment" [level=3] - radio "Customer will be charged automatically (after 1st invoice) CARD ONLY" - text: Customer will be charged automatically (after 1st invoice) CARD ONLY - radio "Automatically charge with existing payment method" [checked] - text: Automatically charge with existing payment method - button "SEPA via Stripe IBAN •••• 3201": - img "SEPA via Stripe" - text: IBAN •••• 3201 - button - alert - button "Add payment method" - radio "Customer pays each invoice manually via payment-link" - text: Customer pays each invoice manually via payment-link - alert - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip - tooltip ``` # Test source ```ts 929 | createCustomer, 930 | createUnitType, 931 | createUnit, 932 | createDeposit, 933 | bookingCreateDialog, 934 | trackBookingForTeardown, 935 | }) => { 936 | const [customer, deposit] = await Promise.all([ 937 | createCustomer(getCustomerCreateData()), 938 | createDeposit(getDepositCreateData()), 939 | ]); 940 | const unitType = await createUnitType(getUnitTypeCreateData({ deposit })); 941 | const unit = await createUnit(getUnitCreateData(unitType)); 942 | const data = getBookingCreateData( 943 | { customer, unitType, unit, deposit }, 944 | { chargeDepositUpfront: true, moveInDaysInTheFuture: 10 } 945 | ); 946 | const depositAmount = formatCurrency(deposit.priceExclVat, data.location.currency); 947 | const today = formatDate(new Date(), data.location.timezone); 948 | const dueDate = formatDate(getFutureDate(data.location.invoiceDaysUntilDue, 'day'), data.location.timezone); 949 | 950 | await bookingCreateDialog.goto(); 951 | 952 | const detailsPage = await test.step('create booking', () => bookingCreateDialog.create(data)); 953 | 954 | trackBookingForTeardown(detailsPage.getBookingId()); 955 | 956 | await test.step('verify booking invoices', async () => { 957 | // scheduled, so no first-period invoice yet — only the upfront deposit invoice 958 | await verifyBookingInvoiceCount(detailsPage, 1); 959 | 960 | // the upfront-deposit invoice is not tied to a unit, so its unit cell is left empty 961 | await verifyBookingInvoice( 962 | detailsPage, 963 | { 964 | status: 'Open', 965 | paymentOption: 'Manual', 966 | amount: depositAmount, 967 | amountDue: depositAmount, 968 | issueDate: today, 969 | dueDate, 970 | }, 971 | 'Deposit' 972 | ); 973 | }); 974 | 975 | await test.step('verify booking payments', async () => { 976 | await verifyBookingPaymentCount(detailsPage, 1); 977 | 978 | await verifyBookingPayment( 979 | detailsPage, 980 | { amount: depositAmount, status: 'Not paid yet', date: today }, 981 | await getBookingDepositInvoiceNumber(detailsPage.invoicesCard.dataTable) 982 | ); 983 | }); 984 | 985 | // Reloads, so run last: the deposit field links its amount to the upfront deposit invoice. 986 | await test.step('verify deposit on details page', () => verifyBookingDepositInvoiceLink(detailsPage, depositAmount)); 987 | }); 988 | 989 | test('rejects a sepa booking over the payment amount limit', async ({ 990 | createCustomer, 991 | createUnitType, 992 | createUnit, 993 | bookingCreateDialog, 994 | }) => { 995 | const [customer, unitType] = await Promise.all([ 996 | createCustomer(getCustomerCreateData()), 997 | createUnitType( 998 | getUnitTypeCreateData({ 999 | bookingPlans: [ 1000 | { 1001 | period: 'monthly', 1002 | amount: 1, 1003 | priceExclVat: 11000, 1004 | discount: undefined, 1005 | publish: true, 1006 | name: 'Basic', 1007 | shortDescription: { EN: 'Basic description' }, 1008 | }, 1009 | ], 1010 | }) 1011 | ), 1012 | ]); 1013 | const unit = await createUnit(getUnitCreateData(unitType)); 1014 | // a sepa subscription over the SEPA per-transaction limit is rejected on submit with an error snackbar 1015 | // (no booking is created, so nothing to tear down). 1016 | const data = getBookingCreateData( 1017 | { customer, unitType, unit }, 1018 | { paymentOption: 'charge_automatically', paymentMethod: getDefaultSepaPayment() } 1019 | ); 1020 | 1021 | await bookingCreateDialog.goto(); 1022 | 1023 | await test.step('submit booking', async () => { 1024 | await bookingCreateDialog.fill(data); 1025 | await bookingCreateDialog.submit(); 1026 | }); 1027 | 1028 | await test.step('verify the payment limit error', async () => { > 1029 | await expect(bookingCreateDialog.paymentLimitSnackbar).toBeVisible(); | ^ Error: expect(locator).toBeVisible() failed 1030 | }); 1031 | }); 1032 | 1033 | test('rejects a booking without all required fields', async ({ bookingCreateDialog }) => { 1034 | await bookingCreateDialog.goto(); 1035 | 1036 | await test.step('submit invalid booking create form', () => bookingCreateDialog.submit()); 1037 | 1038 | await test.step('verify errors on form', async () => { 1039 | await expect(bookingCreateDialog.errors).toHaveCountGreaterThan(0); 1040 | }); 1041 | }); 1042 | ```