# 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:954: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 "9829-2555-6111-794 Vienna South Active Gerry Runolfsdottir Practical Box NDgXue Unit uoaK1I Basic (1 month) 17 Sep 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "9829-2555-6111-794": - link "9829-2555-6111-794": - /url: /bookings/982925556111794 - cell "Vienna South": - link "Vienna South": - /url: /bookings/982925556111794 - cell "Active": - link "Active": - /url: /bookings/982925556111794 - cell "Gerry Runolfsdottir": - link "Gerry Runolfsdottir": - /url: /bookings/982925556111794 - cell "Practical Box NDgXue": - link "Practical Box NDgXue": - /url: /bookings/982925556111794 - cell "Unit uoaK1I": - link "Unit uoaK1I": - /url: /bookings/982925556111794 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/982925556111794 - cell "17 Sep 2026": - link "17 Sep 2026": - /url: /bookings/982925556111794 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/982925556111794 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/982925556111794 - cell: - link: - /url: /bookings/982925556111794 - row "9829-2556-8443-884 Vienna South Active Hailie Auer-Zemlak Recycled Box IHyxjl Unit pfULdP Basic (1 month) 7 Sep 2026 17 Aug 2026 7 Aug 2026": - cell: - checkbox - cell "9829-2556-8443-884": - link "9829-2556-8443-884": - /url: /bookings/982925568443884 - cell "Vienna South": - link "Vienna South": - /url: /bookings/982925568443884 - cell "Active": - link "Active": - /url: /bookings/982925568443884 - cell "Hailie Auer-Zemlak": - link "Hailie Auer-Zemlak": - /url: /bookings/982925568443884 - cell "Recycled Box IHyxjl": - link "Recycled Box IHyxjl": - /url: /bookings/982925568443884 - cell "Unit pfULdP": - link "Unit pfULdP": - /url: /bookings/982925568443884 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/982925568443884 - cell "7 Sep 2026": - link "7 Sep 2026": - /url: /bookings/982925568443884 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/982925568443884 - cell "7 Aug 2026": - link "7 Aug 2026": - /url: /bookings/982925568443884 - cell: - link: - /url: /bookings/982925568443884 - row "4694-9167-9339-85 Vienna South Active Dee Huels Awesome Box fJ52Xa Unit 9Ebnwq Basic (1 month) 17 Sep 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "4694-9167-9339-85": - link "4694-9167-9339-85": - /url: /bookings/46949167933985 - cell "Vienna South": - link "Vienna South": - /url: /bookings/46949167933985 - cell "Active": - link "Active": - /url: /bookings/46949167933985 - cell "Dee Huels": - link "Dee Huels": - /url: /bookings/46949167933985 - cell "Awesome Box fJ52Xa": - link "Awesome Box fJ52Xa": - /url: /bookings/46949167933985 - cell "Unit 9Ebnwq": - link "Unit 9Ebnwq": - /url: /bookings/46949167933985 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/46949167933985 - cell "17 Sep 2026": - link "17 Sep 2026": - /url: /bookings/46949167933985 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/46949167933985 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/46949167933985 - cell: - link: - /url: /bookings/46949167933985 - row "5975-7673-3262-937 Vienna South Active Seth Romaguera Luxurious Box JePRFf Unit Y9nMgE Basic (1 month) 17 Sep 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "5975-7673-3262-937": - link "5975-7673-3262-937": - /url: /bookings/597576733262937 - cell "Vienna South": - link "Vienna South": - /url: /bookings/597576733262937 - cell "Active": - link "Active": - /url: /bookings/597576733262937 - cell "Seth Romaguera": - link "Seth Romaguera": - /url: /bookings/597576733262937 - cell "Luxurious Box JePRFf": - link "Luxurious Box JePRFf": - /url: /bookings/597576733262937 - cell "Unit Y9nMgE": - link "Unit Y9nMgE": - /url: /bookings/597576733262937 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/597576733262937 - cell "17 Sep 2026": - link "17 Sep 2026": - /url: /bookings/597576733262937 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/597576733262937 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/597576733262937 - cell: - link: - /url: /bookings/597576733262937 - row "2342-4749-8857-182 Vienna South Active Jimmy Paucek Sleek Box UzqnLW Unit Ki2giq Basic (1 week) 24 Aug 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "2342-4749-8857-182": - link "2342-4749-8857-182": - /url: /bookings/234247498857182 - cell "Vienna South": - link "Vienna South": - /url: /bookings/234247498857182 - cell "Active": - link "Active": - /url: /bookings/234247498857182 - cell "Jimmy Paucek": - link "Jimmy Paucek": - /url: /bookings/234247498857182 - cell "Sleek Box UzqnLW": - link "Sleek Box UzqnLW": - /url: /bookings/234247498857182 - cell "Unit Ki2giq": - link "Unit Ki2giq": - /url: /bookings/234247498857182 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/234247498857182 - cell "24 Aug 2026": - link "24 Aug 2026": - /url: /bookings/234247498857182 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/234247498857182 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/234247498857182 - cell: - link: - /url: /bookings/234247498857182 - row "3163-6281-1273-128 Vienna South Active Otis Lindgren Fresh Box EcTyqH Unit RPmQpK Basic (1 week) 24 Aug 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "3163-6281-1273-128": - link "3163-6281-1273-128": - /url: /bookings/316362811273128 - cell "Vienna South": - link "Vienna South": - /url: /bookings/316362811273128 - cell "Active": - link "Active": - /url: /bookings/316362811273128 - cell "Otis Lindgren": - link "Otis Lindgren": - /url: /bookings/316362811273128 - cell "Fresh Box EcTyqH": - link "Fresh Box EcTyqH": - /url: /bookings/316362811273128 - cell "Unit RPmQpK": - link "Unit RPmQpK": - /url: /bookings/316362811273128 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/316362811273128 - cell "24 Aug 2026": - link "24 Aug 2026": - /url: /bookings/316362811273128 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/316362811273128 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/316362811273128 - cell: - link: - /url: /bookings/316362811273128 - row "8738-3928-7764-279 Vienna South Scheduled Fletcher Cassin Fresh Box jiTXNU Unit dm1vrY Basic (1 week) 22 Aug 2026 17 Aug 2026 22 Aug 2026": - cell: - checkbox - cell "8738-3928-7764-279": - link "8738-3928-7764-279": - /url: /bookings/873839287764279 - cell "Vienna South": - link "Vienna South": - /url: /bookings/873839287764279 - cell "Scheduled": - link "Scheduled": - /url: /bookings/873839287764279 - cell "Fletcher Cassin": - link "Fletcher Cassin": - /url: /bookings/873839287764279 - cell "Fresh Box jiTXNU": - link "Fresh Box jiTXNU": - /url: /bookings/873839287764279 - cell "Unit dm1vrY": - link "Unit dm1vrY": - /url: /bookings/873839287764279 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/873839287764279 - cell "22 Aug 2026": - link "22 Aug 2026": - /url: /bookings/873839287764279 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/873839287764279 - cell "22 Aug 2026": - link "22 Aug 2026": - /url: /bookings/873839287764279 - cell: - link: - /url: /bookings/873839287764279 - row "2342-4744-5388-23 Vienna South Active James Hintz Rustic Box 0Dk1f8 Unit PDhy6S Basic (1 week) 24 Aug 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "2342-4744-5388-23": - link "2342-4744-5388-23": - /url: /bookings/23424744538823 - cell "Vienna South": - link "Vienna South": - /url: /bookings/23424744538823 - cell "Active": - link "Active": - /url: /bookings/23424744538823 - cell "James Hintz": - link "James Hintz": - /url: /bookings/23424744538823 - cell "Rustic Box 0Dk1f8": - link "Rustic Box 0Dk1f8": - /url: /bookings/23424744538823 - cell "Unit PDhy6S": - link "Unit PDhy6S": - /url: /bookings/23424744538823 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/23424744538823 - cell "24 Aug 2026": - link "24 Aug 2026": - /url: /bookings/23424744538823 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/23424744538823 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/23424744538823 - cell: - link: - /url: /bookings/23424744538823 - row "1451-5346-1418-474 Vienna South Active Henrietta Mraz Soft Box 9Y0xgq Unit 2miqUa Basic (1 week) 24 Aug 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "1451-5346-1418-474": - link "1451-5346-1418-474": - /url: /bookings/145153461418474 - cell "Vienna South": - link "Vienna South": - /url: /bookings/145153461418474 - cell "Active": - link "Active": - /url: /bookings/145153461418474 - cell "Henrietta Mraz": - link "Henrietta Mraz": - /url: /bookings/145153461418474 - cell "Soft Box 9Y0xgq": - link "Soft Box 9Y0xgq": - /url: /bookings/145153461418474 - cell "Unit 2miqUa": - link "Unit 2miqUa": - /url: /bookings/145153461418474 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/145153461418474 - cell "24 Aug 2026": - link "24 Aug 2026": - /url: /bookings/145153461418474 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/145153461418474 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/145153461418474 - cell: - link: - /url: /bookings/145153461418474 - row "8738-3989-9597-387 Vienna South Active Eda Hoeger Bespoke Box pLUn87 Unit cBJG30 Basic (1 week) 24 Aug 2026 17 Aug 2026 17 Aug 2026": - cell: - checkbox - cell "8738-3989-9597-387": - link "8738-3989-9597-387": - /url: /bookings/873839899597387 - cell "Vienna South": - link "Vienna South": - /url: /bookings/873839899597387 - cell "Active": - link "Active": - /url: /bookings/873839899597387 - cell "Eda Hoeger": - link "Eda Hoeger": - /url: /bookings/873839899597387 - cell "Bespoke Box pLUn87": - link "Bespoke Box pLUn87": - /url: /bookings/873839899597387 - cell "Unit cBJG30": - link "Unit cBJG30": - /url: /bookings/873839899597387 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/873839899597387 - cell "24 Aug 2026": - link "24 Aug 2026": - /url: /bookings/873839899597387 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/873839899597387 - cell "17 Aug 2026": - link "17 Aug 2026": - /url: /bookings/873839899597387 - cell: - link: - /url: /bookings/873839899597387 - text: "Items per page:" - combobox: - text: "10" - combobox "Items per page:": "10" - text: 1-10 of 125 - 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: Shawna Bayer (eleonore.durgan57@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: 17/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: Incredible Box vEqH3u - combobox "Unit type *" - text: Unit type * - alert - combobox: - text: Unit I8fnqh - 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" - 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 892 | // Reloads, so run last: the deposit field links its amount to the upfront deposit invoice. 893 | await test.step('verify deposit on details page', () => verifyBookingDepositInvoiceLink(detailsPage, depositAmount)); 894 | }); 895 | 896 | test.fixme('issues only a deposit invoice for a scheduled upfront-deposit booking', async ({ 897 | createCustomer, 898 | createUnitType, 899 | createUnit, 900 | createDeposit, 901 | bookingCreateDialog, 902 | trackBookingForTeardown, 903 | }) => { 904 | const customer = await createCustomer(getCustomerCreateData()); 905 | const deposit = await createDeposit(getDepositCreateData()); 906 | const unitType = await createUnitType(getUnitTypeCreateData({ deposit })); 907 | const unit = await createUnit(getUnitCreateData(unitType)); 908 | const data = getBookingCreateData( 909 | { customer, unitType, unit, deposit }, 910 | { chargeDepositUpfront: true, moveInDaysInTheFuture: 10 } 911 | ); 912 | const depositAmount = formatCurrency(deposit.priceExclVat, data.location.currency); 913 | const today = formatDate(new Date(), data.location.timezone); 914 | 915 | await bookingCreateDialog.goto(); 916 | 917 | const detailsPage = await test.step('create booking', () => bookingCreateDialog.create(data)); 918 | 919 | trackBookingForTeardown(detailsPage.getBookingId()); 920 | 921 | await test.step('verify booking invoices', async () => { 922 | // scheduled, so no first-period invoice yet — only the upfront deposit invoice 923 | await verifyBookingInvoiceCount(detailsPage, 1); 924 | 925 | // the upfront-deposit invoice is not tied to a unit, so its unit cell is left empty 926 | await verifyBookingInvoice( 927 | detailsPage, 928 | { 929 | status: 'Open', 930 | paymentOption: 'Manual', 931 | amount: depositAmount, 932 | amountDue: depositAmount, 933 | issueDate: today, 934 | dueDate: formatDate(getFutureDate(data.location.invoiceDaysUntilDue, 'day'), data.location.timezone), 935 | }, 936 | 'Deposit' 937 | ); 938 | }); 939 | 940 | await test.step('verify booking payments', async () => { 941 | await verifyBookingPaymentCount(detailsPage, 1); 942 | 943 | await verifyBookingPayment( 944 | detailsPage, 945 | { amount: depositAmount, status: 'Not paid yet', date: today }, 946 | await getBookingDepositInvoiceNumber(detailsPage.invoicesCard.dataTable) 947 | ); 948 | }); 949 | 950 | // Reloads, so run last: the deposit field links its amount to the upfront deposit invoice. 951 | await test.step('verify deposit on details page', () => verifyBookingDepositInvoiceLink(detailsPage, depositAmount)); 952 | }); 953 | 954 | test('rejects a sepa booking over the payment amount limit', async ({ 955 | createCustomer, 956 | createUnitType, 957 | createUnit, 958 | bookingCreateDialog, 959 | }) => { 960 | const customer = await createCustomer(getCustomerCreateData()); 961 | const unitType = await createUnitType( 962 | getUnitTypeCreateData({ 963 | bookingPlans: [ 964 | { 965 | period: 'monthly', 966 | amount: 1, 967 | priceExclVat: 11000, 968 | discount: undefined, 969 | publish: true, 970 | name: 'Basic', 971 | shortDescription: { EN: 'Basic description' }, 972 | }, 973 | ], 974 | }) 975 | ); 976 | const unit = await createUnit(getUnitCreateData(unitType)); 977 | // a sepa subscription over the SEPA per-transaction limit is rejected on submit with an error snackbar 978 | // (no booking is created, so nothing to tear down). 979 | const data = getBookingCreateData( 980 | { customer, unitType, unit }, 981 | { paymentOption: 'charge_automatically', paymentMethod: getDefaultSepaPayment() } 982 | ); 983 | 984 | await bookingCreateDialog.goto(); 985 | 986 | await test.step('submit booking', async () => { 987 | await bookingCreateDialog.fill(data); 988 | await bookingCreateDialog.submit(); 989 | }); 990 | 991 | await test.step('verify the payment limit error', async () => { > 992 | await expect(bookingCreateDialog.paymentLimitSnackbar).toBeVisible(); | ^ Error: expect(locator).toBeVisible() failed 993 | }); 994 | }); 995 | 996 | test('rejects a booking without all required fields', async ({ bookingCreateDialog }) => { 997 | await bookingCreateDialog.goto(); 998 | 999 | await test.step('submit invalid booking create form', () => bookingCreateDialog.submit()); 1000 | 1001 | await test.step('verify errors on form', async () => { 1002 | await expect(bookingCreateDialog.errors).toHaveCountGreaterThan(0); 1003 | }); 1004 | }); 1005 | ```