# 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 "6586-8421-2365-848 Vienna South Active Leland Ortiz Modern Box X0h9St Unit lhYIdN Basic (1 month) 20 Sep 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "6586-8421-2365-848": - link "6586-8421-2365-848": - /url: /bookings/658684212365848 - cell "Vienna South": - link "Vienna South": - /url: /bookings/658684212365848 - cell "Active": - link "Active": - /url: /bookings/658684212365848 - cell "Leland Ortiz": - link "Leland Ortiz": - /url: /bookings/658684212365848 - cell "Modern Box X0h9St": - link "Modern Box X0h9St": - /url: /bookings/658684212365848 - cell "Unit lhYIdN": - link "Unit lhYIdN": - /url: /bookings/658684212365848 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/658684212365848 - cell "20 Sep 2026": - link "20 Sep 2026": - /url: /bookings/658684212365848 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/658684212365848 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/658684212365848 - cell: - link: - /url: /bookings/658684212365848 - row "6586-8498-2684-958 Vienna South Active Spencer Stanton Generic Box GqWMwi Unit CJeCXG Basic (1 week) 27 Aug 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "6586-8498-2684-958": - link "6586-8498-2684-958": - /url: /bookings/658684982684958 - cell "Vienna South": - link "Vienna South": - /url: /bookings/658684982684958 - cell "Active": - link "Active": - /url: /bookings/658684982684958 - cell "Spencer Stanton": - link "Spencer Stanton": - /url: /bookings/658684982684958 - cell "Generic Box GqWMwi": - link "Generic Box GqWMwi": - /url: /bookings/658684982684958 - cell "Unit CJeCXG": - link "Unit CJeCXG": - /url: /bookings/658684982684958 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/658684982684958 - cell "27 Aug 2026": - link "27 Aug 2026": - /url: /bookings/658684982684958 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/658684982684958 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/658684982684958 - cell: - link: - /url: /bookings/658684982684958 - row "8738-3999-2878-23 Vienna South Active Kurt Feeney Recycled Box eaMvx6 Unit NrD10g Basic (1 week) 27 Aug 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "8738-3999-2878-23": - link "8738-3999-2878-23": - /url: /bookings/87383999287823 - cell "Vienna South": - link "Vienna South": - /url: /bookings/87383999287823 - cell "Active": - link "Active": - /url: /bookings/87383999287823 - cell "Kurt Feeney": - link "Kurt Feeney": - /url: /bookings/87383999287823 - cell "Recycled Box eaMvx6": - link "Recycled Box eaMvx6": - /url: /bookings/87383999287823 - cell "Unit NrD10g": - link "Unit NrD10g": - /url: /bookings/87383999287823 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/87383999287823 - cell "27 Aug 2026": - link "27 Aug 2026": - /url: /bookings/87383999287823 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/87383999287823 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/87383999287823 - cell: - link: - /url: /bookings/87383999287823 - row "1451-5351-1975-458 Vienna South Active Damaris Klocko Gorgeous Box RHZv0J Unit 5RKFgr Basic (1 week) 27 Aug 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "1451-5351-1975-458": - link "1451-5351-1975-458": - /url: /bookings/145153511975458 - cell "Vienna South": - link "Vienna South": - /url: /bookings/145153511975458 - cell "Active": - link "Active": - /url: /bookings/145153511975458 - cell "Damaris Klocko": - link "Damaris Klocko": - /url: /bookings/145153511975458 - cell "Gorgeous Box RHZv0J": - link "Gorgeous Box RHZv0J": - /url: /bookings/145153511975458 - cell "Unit 5RKFgr": - link "Unit 5RKFgr": - /url: /bookings/145153511975458 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/145153511975458 - cell "27 Aug 2026": - link "27 Aug 2026": - /url: /bookings/145153511975458 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/145153511975458 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/145153511975458 - cell: - link: - /url: /bookings/145153511975458 - row "4694-9136-7335-37 Vienna South Active Brooke Waters Luxurious Box zp6IQw Unit E3JnFe Basic (1 month) 10 Sep 2026 20 Aug 2026 10 Aug 2026": - cell: - checkbox - cell "4694-9136-7335-37": - link "4694-9136-7335-37": - /url: /bookings/46949136733537 - cell "Vienna South": - link "Vienna South": - /url: /bookings/46949136733537 - cell "Active": - link "Active": - /url: /bookings/46949136733537 - cell "Brooke Waters": - link "Brooke Waters": - /url: /bookings/46949136733537 - cell "Luxurious Box zp6IQw": - link "Luxurious Box zp6IQw": - /url: /bookings/46949136733537 - cell "Unit E3JnFe": - link "Unit E3JnFe": - /url: /bookings/46949136733537 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/46949136733537 - cell "10 Sep 2026": - link "10 Sep 2026": - /url: /bookings/46949136733537 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/46949136733537 - cell "10 Aug 2026": - link "10 Aug 2026": - /url: /bookings/46949136733537 - cell: - link: - /url: /bookings/46949136733537 - row "8738-3956-5662-884 Vienna South Active Laury Hegmann Incredible Box CUmmq1 Unit c9gsxf Basic (1 month) 20 Sep 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "8738-3956-5662-884": - link "8738-3956-5662-884": - /url: /bookings/873839565662884 - cell "Vienna South": - link "Vienna South": - /url: /bookings/873839565662884 - cell "Active": - link "Active": - /url: /bookings/873839565662884 - cell "Laury Hegmann": - link "Laury Hegmann": - /url: /bookings/873839565662884 - cell "Incredible Box CUmmq1": - link "Incredible Box CUmmq1": - /url: /bookings/873839565662884 - cell "Unit c9gsxf": - link "Unit c9gsxf": - /url: /bookings/873839565662884 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/873839565662884 - cell "20 Sep 2026": - link "20 Sep 2026": - /url: /bookings/873839565662884 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/873839565662884 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/873839565662884 - cell: - link: - /url: /bookings/873839565662884 - row "9829-2565-7483-813 Vienna South Active Arvid Ryan Gorgeous Box Q5BMRn Unit DCm51w Basic (1 month) 20 Sep 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "9829-2565-7483-813": - link "9829-2565-7483-813": - /url: /bookings/982925657483813 - cell "Vienna South": - link "Vienna South": - /url: /bookings/982925657483813 - cell "Active": - link "Active": - /url: /bookings/982925657483813 - cell "Arvid Ryan": - link "Arvid Ryan": - /url: /bookings/982925657483813 - cell "Gorgeous Box Q5BMRn": - link "Gorgeous Box Q5BMRn": - /url: /bookings/982925657483813 - cell "Unit DCm51w": - link "Unit DCm51w": - /url: /bookings/982925657483813 - cell "Basic (1 month)": - link "Basic (1 month)": - /url: /bookings/982925657483813 - cell "20 Sep 2026": - link "20 Sep 2026": - /url: /bookings/982925657483813 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/982925657483813 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/982925657483813 - cell: - link: - /url: /bookings/982925657483813 - row "1451-5324-4547-124 Vienna South Active Bettye Mayer Small Box MBDb0Q Unit TXSkRa Basic (1 week) 27 Aug 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "1451-5324-4547-124": - link "1451-5324-4547-124": - /url: /bookings/145153244547124 - cell "Vienna South": - link "Vienna South": - /url: /bookings/145153244547124 - cell "Active": - link "Active": - /url: /bookings/145153244547124 - cell "Bettye Mayer": - link "Bettye Mayer": - /url: /bookings/145153244547124 - cell "Small Box MBDb0Q": - link "Small Box MBDb0Q": - /url: /bookings/145153244547124 - cell "Unit TXSkRa": - link "Unit TXSkRa": - /url: /bookings/145153244547124 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/145153244547124 - cell "27 Aug 2026": - link "27 Aug 2026": - /url: /bookings/145153244547124 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/145153244547124 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/145153244547124 - cell: - link: - /url: /bookings/145153244547124 - row "6586-8484-6219-932 Vienna South Active Bettye Mayer Gorgeous Box v3shE1 Unit WHW7th Basic (1 week) 27 Aug 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "6586-8484-6219-932": - link "6586-8484-6219-932": - /url: /bookings/658684846219932 - cell "Vienna South": - link "Vienna South": - /url: /bookings/658684846219932 - cell "Active": - link "Active": - /url: /bookings/658684846219932 - cell "Bettye Mayer": - link "Bettye Mayer": - /url: /bookings/658684846219932 - cell "Gorgeous Box v3shE1": - link "Gorgeous Box v3shE1": - /url: /bookings/658684846219932 - cell "Unit WHW7th": - link "Unit WHW7th": - /url: /bookings/658684846219932 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/658684846219932 - cell "27 Aug 2026": - link "27 Aug 2026": - /url: /bookings/658684846219932 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/658684846219932 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/658684846219932 - cell: - link: - /url: /bookings/658684846219932 - row "4694-9156-6435-815 Vienna South Active Glenn Nitzsche Intelligent Box gKvVW7 Unit IKywUd Basic (1 week) 27 Aug 2026 20 Aug 2026 20 Aug 2026": - cell: - checkbox - cell "4694-9156-6435-815": - link "4694-9156-6435-815": - /url: /bookings/469491566435815 - cell "Vienna South": - link "Vienna South": - /url: /bookings/469491566435815 - cell "Active": - link "Active": - /url: /bookings/469491566435815 - cell "Glenn Nitzsche": - link "Glenn Nitzsche": - /url: /bookings/469491566435815 - cell "Intelligent Box gKvVW7": - link "Intelligent Box gKvVW7": - /url: /bookings/469491566435815 - cell "Unit IKywUd": - link "Unit IKywUd": - /url: /bookings/469491566435815 - cell "Basic (1 week)": - link "Basic (1 week)": - /url: /bookings/469491566435815 - cell "27 Aug 2026": - link "27 Aug 2026": - /url: /bookings/469491566435815 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/469491566435815 - cell "20 Aug 2026": - link "20 Aug 2026": - /url: /bookings/469491566435815 - cell: - link: - /url: /bookings/469491566435815 - text: "Items per page:" - combobox: - text: "10" - combobox "Items per page:": "10" - text: 1-10 of 124 - 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: Dwayne O'Hara (derick.mann40@hotmail.com) - combobox "Customer *" - text: Customer * - alert - combobox: - text: Vienna South - combobox "Location *" - text: Location * - alert - textbox "Move-in date *": - /placeholder: dd/mm/yyyy - text: 20/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: Oriental Box cZGsR9 - combobox "Unit type *" - text: Unit type * - alert - combobox: - text: Unit 0zrnG3 - 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 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 | ```