# 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/customer/customer-create.spec.ts >> creates a customer with russian language
- Location: src/manager/tests/e2e/customer/customer-create.spec.ts:16:7

# Error details

```
Error: expect(locator).toHaveCount(expected) failed

Locator:  getByTestId('app-page').getByTestId('app-page-content').locator('.ui-data-grid').locator('[data-test-id=ui-data-grid-table]:not(.disabled):not(.loading):not(.fetching)').getByTestId('ui-data-grid-table-with-data').locator('tr')
Expected: 1
Received: 5
Timeout:  20000ms

Call log:
  - Expect "toHaveCount" with timeout 20000ms
  - waiting for getByTestId('app-page').getByTestId('app-page-content').locator('.ui-data-grid').locator('[data-test-id=ui-data-grid-table]:not(.disabled):not(.loading):not(.fetching)').getByTestId('ui-data-grid-table-with-data').locator('tr')
    2 × locator resolved to 0 elements
      - unexpected value "0"
    22 × locator resolved to 5 elements
       - unexpected value "5"

```

# Page snapshot

```yaml
- generic [ref=e1]:
  - generic [ref=e6]:
    - navigation [ref=e7]:
      - generic [ref=e9]:
        - link [ref=e10] [cursor=pointer]:
          - /url: /
        - generic [ref=e11]:
          - generic [ref=e12]: KINNOVIS
          - generic [ref=e13]:
            - generic [ref=e14]: Manager
            - button [ref=e15] [cursor=pointer]:
              - img [ref=e16]
      - list [ref=e19]:
        - generic [ref=e21]: Dashboard
        - link "Tasks" [ref=e22] [cursor=pointer]:
          - /url: /tasks
          - img [ref=e25]
          - generic [ref=e28]: Tasks
        - link "Facility maps" [ref=e29] [cursor=pointer]:
          - /url: /facility-map
          - generic [ref=e31]: 󰧾
          - generic [ref=e33]: Facility maps
        - link "Analytics" [ref=e34] [cursor=pointer]:
          - /url: /dashboard
          - generic [ref=e36]: 󱖶
          - generic [ref=e38]: Analytics
        - generic [ref=e40]: Sales
        - link "Bookings" [ref=e41] [cursor=pointer]:
          - /url: /bookings
          - generic [ref=e43]: 󰇡
          - generic [ref=e45]: Bookings
        - link "Customers" [ref=e46] [cursor=pointer]:
          - /url: /customers
          - generic [ref=e48]: 󰀏
          - generic [ref=e50]: Customers
        - link "Invoices" [ref=e51] [cursor=pointer]:
          - /url: /invoices
          - generic [ref=e53]: 󰷉
          - generic [ref=e55]: Invoices
        - link "Credit notes" [ref=e56] [cursor=pointer]:
          - /url: /credit-notes
          - img [ref=e59]
          - generic [ref=e62]: Credit notes
        - link "Units" [ref=e63] [cursor=pointer]:
          - /url: /units
          - generic [ref=e65]: 󰍀
          - generic [ref=e67]: Units
        - generic [ref=e69]: Site management
        - link "Locations" [ref=e70] [cursor=pointer]:
          - /url: /locations
          - generic [ref=e72]: 󰟙
          - generic [ref=e74]: Locations
        - link "Unit types" [ref=e75] [cursor=pointer]:
          - /url: /unit-types
          - generic [ref=e77]: 󰆧
          - generic [ref=e79]: Unit types
        - link "Protection Plans" [ref=e80] [cursor=pointer]:
          - /url: /insurances
          - generic [ref=e82]: 󰳌
          - generic [ref=e84]: Protection Plans
        - link "Deposits" [ref=e85] [cursor=pointer]:
          - /url: /deposits
          - generic [ref=e87]: 󱙆
          - generic [ref=e89]: Deposits
        - link "Products" [ref=e90] [cursor=pointer]:
          - /url: /products
          - generic [ref=e92]: 󰄑
          - generic [ref=e94]: Products
        - link "Discounts" [ref=e95] [cursor=pointer]:
          - /url: /discounts
          - generic [ref=e97]: 󰓼
          - generic [ref=e99]: Discounts
        - generic [ref=e100]:
          - option "Emails" [ref=e101] [cursor=pointer]:
            - generic [ref=e103]: 󰻨
            - generic [ref=e105]: Emails
            - generic [ref=e109]: 󰅀
          - text: 󱡰 󰁥
        - generic [ref=e111]: Admin
        - link "Integrations" [ref=e112] [cursor=pointer]:
          - /url: /connected-apps
          - generic [ref=e114]: 󱘖
          - generic [ref=e116]: Integrations
        - link "User & Roles" [ref=e117] [cursor=pointer]:
          - /url: /users
          - generic [ref=e119]: 󰭘
          - generic [ref=e121]: User & Roles
        - generic [ref=e122]:
          - option "Booking Portal" [ref=e123] [cursor=pointer]:
            - generic [ref=e125]: 󱃁
            - generic [ref=e127]: Booking Portal
            - generic [ref=e131]: 󰅀
          - text: 󰖟 󰟙
        - generic [ref=e132]:
          - option "JaneAI" [ref=e133] [cursor=pointer]:
            - generic [ref=e135]: 󱙺
            - generic [ref=e137]: JaneAI
            - generic [ref=e141]: 󰅀
          - text: 󱜹
        - generic [ref=e143]: Feedback
        - link "Voting Portal" [ref=e144] [cursor=pointer]:
          - /url: /voting-portal
          - generic [ref=e146]: 󰔔
          - generic [ref=e148]: Voting Portal
      - generic [ref=e150]:
        - button "AS Andreas Stadler andreas.stadler@storeroom.at" [ref=e153] [cursor=pointer]:
          - generic [ref=e156]: AS
          - generic [ref=e157]:
            - generic [ref=e158]: Andreas Stadler
            - generic "andreas.stadler@storeroom.at" [ref=e159]
          - generic [ref=e160]: 󰇙
          - generic:
            - text: 󰗊 󰅀
            - text: 󰷖 󰍃
        - button [ref=e161] [cursor=pointer]:
          - generic [ref=e163]: 󰋽
    - main [ref=e164]:
      - generic [ref=e166]:
        - generic [ref=e168]:
          - generic [ref=e170]: Customers
          - generic [ref=e172]:
            - link "Create customer" [ref=e173] [cursor=pointer]:
              - /url: /customers/create
              - generic [ref=e174]:
                - generic [ref=e175]: 󰐕
                - text: Create customer
            - button [ref=e176] [cursor=pointer]:
              - generic [ref=e180]: 󰍝
        - generic [ref=e182]:
          - generic [ref=e184]:
            - button "Filters Reset filters" [ref=e185] [cursor=pointer]:
              - generic [ref=e186]:
                - heading "Filters" [level=3] [ref=e189]
                - generic [ref=e191]:
                  - button "Reset filters" [ref=e193]:
                    - generic [ref=e194]:
                      - generic [ref=e195]: 󰑐
                      - text: Reset filters
                  - generic [ref=e199]: 󰅀
            - generic [ref=e205]:
              - generic [ref=e210]:
                - generic [ref=e212]: 󰍉
                - textbox "Search" [active] [ref=e214]: Jaquelin56@hotmail.com
                - button "Clear Search" [ref=e216] [cursor=pointer]: 󰅙
                - generic:
                  - generic: Search
              - combobox [ref=e220]:
                - generic [ref=e221]:
                  - generic: Location
                  - combobox "Location" [ref=e223]
                - button [ref=e225] [cursor=pointer]: 󰍝
              - combobox [ref=e229]:
                - generic [ref=e230]:
                  - generic: Has past due invoice(s)
                  - combobox "Has past due invoice(s)" [ref=e232]
                - button [ref=e234] [cursor=pointer]: 󰍝
              - combobox [ref=e238]:
                - generic [ref=e239]:
                  - generic: Status
                  - combobox "Status" [ref=e241]
                - button [ref=e243] [cursor=pointer]: 󰍝
          - generic [ref=e245]:
            - table [ref=e249]:
              - rowgroup [ref=e250]:
                - row "Customer no. Name Location(s) Email address Phone number Status Past due invoice(s) Created at" [ref=e251]:
                  - columnheader "Customer no." [ref=e252]:
                    - button "Customer no." [ref=e253] [cursor=pointer]:
                      - generic [ref=e255]: Customer no.
                      - generic [ref=e258]: 󰁝
                  - columnheader "Name" [ref=e259]:
                    - button "Name" [ref=e260] [cursor=pointer]:
                      - generic [ref=e262]: Name
                      - generic [ref=e265]: 󰁝
                  - columnheader "Location(s)" [ref=e266]:
                    - button "Location(s)" [ref=e267] [cursor=pointer]:
                      - generic [ref=e269]: Location(s)
                      - generic [ref=e272]: 󰁝
                  - columnheader "Email address" [ref=e273]:
                    - button "Email address" [ref=e274] [cursor=pointer]:
                      - generic [ref=e276]: Email address
                      - generic [ref=e279]: 󰁝
                  - columnheader "Phone number" [ref=e280]:
                    - generic [ref=e283]: Phone number
                  - columnheader "Status" [ref=e284]:
                    - button "Status" [ref=e285] [cursor=pointer]:
                      - generic [ref=e287]: Status
                      - generic [ref=e290]: 󰁝
                  - columnheader "Past due invoice(s)" [ref=e291]:
                    - button "Past due invoice(s)" [ref=e292] [cursor=pointer]:
                      - generic [ref=e294]: Past due invoice(s)
                      - generic [ref=e297]: 󰁝
                  - columnheader "Created at" [ref=e298]:
                    - button "Created at" [ref=e299] [cursor=pointer]:
                      - generic [ref=e301]: Created at
                      - generic [ref=e304]: 󰁝
                - row [ref=e305]:
                  - columnheader [ref=e306]
              - rowgroup [ref=e307]:
                - row "1095-6483-88 Juwan Heaney Vienna South jaquelin56@hotmail.com +43 3787 008271 Lead None 25 May 2026" [ref=e308]:
                  - cell "1095-6483-88" [ref=e309]:
                    - link "1095-6483-88" [ref=e310] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e311]: 1095-6483-88
                  - cell "Juwan Heaney" [ref=e312]:
                    - link "Juwan Heaney" [ref=e313] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e314]: Juwan Heaney
                  - cell "Vienna South" [ref=e315]:
                    - link "Vienna South" [ref=e316] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e320]: Vienna South
                  - cell "jaquelin56@hotmail.com" [ref=e321]:
                    - link "jaquelin56@hotmail.com" [ref=e322] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e325]: jaquelin56@hotmail.com
                  - cell "+43 3787 008271" [ref=e326]:
                    - link "+43 3787 008271" [ref=e327] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e330]: +43 3787 008271
                  - cell "Lead" [ref=e331]:
                    - link "Lead" [ref=e332] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e335]: Lead
                  - cell "None" [ref=e336]:
                    - link "None" [ref=e337] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e340]: None
                  - cell "25 May 2026" [ref=e341]:
                    - link "25 May 2026" [ref=e342] [cursor=pointer]:
                      - /url: /customers/1095648388
                      - generic [ref=e343]: 25 May 2026
                - row "3966-8131 Ceasar Howell Vienna North mozelle.davis@kohler.com +43 59356690225574937 Lead None 25 May 2026" [ref=e344]:
                  - cell "3966-8131" [ref=e345]:
                    - link "3966-8131" [ref=e346] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e347]: 3966-8131
                  - cell "Ceasar Howell" [ref=e348]:
                    - link "Ceasar Howell" [ref=e349] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e350]: Ceasar Howell
                  - cell "Vienna North" [ref=e351]:
                    - link "Vienna North" [ref=e352] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e356]: Vienna North
                  - cell "mozelle.davis@kohler.com" [ref=e357]:
                    - link "mozelle.davis@kohler.com" [ref=e358] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e361]: mozelle.davis@kohler.com
                  - cell "+43 59356690225574937" [ref=e362]:
                    - link "+43 59356690225574937" [ref=e363] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e366]: +43 59356690225574937
                  - cell "Lead" [ref=e367]:
                    - link "Lead" [ref=e368] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e371]: Lead
                  - cell "None" [ref=e372]:
                    - link "None" [ref=e373] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e376]: None
                  - cell "25 May 2026" [ref=e377]:
                    - link "25 May 2026" [ref=e378] [cursor=pointer]:
                      - /url: /customers/39668131
                      - generic [ref=e379]: 25 May 2026
                - row "4131-7095-0 Tod Volkman Vienna South simeon.schultz@farrell.biz +43 3306907956512240 Lead None 25 May 2026" [ref=e380]:
                  - cell "4131-7095-0" [ref=e381]:
                    - link "4131-7095-0" [ref=e382] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e383]: 4131-7095-0
                  - cell "Tod Volkman" [ref=e384]:
                    - link "Tod Volkman" [ref=e385] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e386]: Tod Volkman
                  - cell "Vienna South" [ref=e387]:
                    - link "Vienna South" [ref=e388] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e392]: Vienna South
                  - cell "simeon.schultz@farrell.biz" [ref=e393]:
                    - link "simeon.schultz@farrell.biz" [ref=e394] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e397]: simeon.schultz@farrell.biz
                  - cell "+43 3306907956512240" [ref=e398]:
                    - link "+43 3306907956512240" [ref=e399] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e402]: +43 3306907956512240
                  - cell "Lead" [ref=e403]:
                    - link "Lead" [ref=e404] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e407]: Lead
                  - cell "None" [ref=e408]:
                    - link "None" [ref=e409] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e412]: None
                  - cell "25 May 2026" [ref=e413]:
                    - link "25 May 2026" [ref=e414] [cursor=pointer]:
                      - /url: /customers/413170950
                      - generic [ref=e415]: 25 May 2026
                - row "7924-8283-8 Parisian-Gerlach Storeroom Innsbruck City 1030 anderson.keyon@rice.com +43 14331895546117565 Lead None 25 May 2026" [ref=e416]:
                  - cell "7924-8283-8" [ref=e417]:
                    - link "7924-8283-8" [ref=e418] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e419]: 7924-8283-8
                  - cell "Parisian-Gerlach" [ref=e420]:
                    - link "Parisian-Gerlach" [ref=e421] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e422]: Parisian-Gerlach
                  - cell "Storeroom Innsbruck City 1030" [ref=e423]:
                    - link "Storeroom Innsbruck City 1030" [ref=e424] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e426]:
                        - generic [ref=e428]: Storeroom Innsbruck
                        - generic [ref=e430]: City 1030
                  - cell "anderson.keyon@rice.com" [ref=e431]:
                    - link "anderson.keyon@rice.com" [ref=e432] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e435]: anderson.keyon@rice.com
                  - cell "+43 14331895546117565" [ref=e436]:
                    - link "+43 14331895546117565" [ref=e437] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e440]: +43 14331895546117565
                  - cell "Lead" [ref=e441]:
                    - link "Lead" [ref=e442] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e445]: Lead
                  - cell "None" [ref=e446]:
                    - link "None" [ref=e447] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e450]: None
                  - cell "25 May 2026" [ref=e451]:
                    - link "25 May 2026" [ref=e452] [cursor=pointer]:
                      - /url: /customers/792482838
                      - generic [ref=e453]: 25 May 2026
                - row "4368-8587-1 Aditya Glover Vienna North buck40@moore.net +43 48556989915572545 Lead None 25 May 2026" [ref=e454]:
                  - cell "4368-8587-1" [ref=e455]:
                    - link "4368-8587-1" [ref=e456] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e457]: 4368-8587-1
                  - cell "Aditya Glover" [ref=e458]:
                    - link "Aditya Glover" [ref=e459] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e460]: Aditya Glover
                  - cell "Vienna North" [ref=e461]:
                    - link "Vienna North" [ref=e462] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e466]: Vienna North
                  - cell "buck40@moore.net" [ref=e467]:
                    - link "buck40@moore.net" [ref=e468] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e471]: buck40@moore.net
                  - cell "+43 48556989915572545" [ref=e472]:
                    - link "+43 48556989915572545" [ref=e473] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e476]: +43 48556989915572545
                  - cell "Lead" [ref=e477]:
                    - link "Lead" [ref=e478] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e481]: Lead
                  - cell "None" [ref=e482]:
                    - link "None" [ref=e483] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e486]: None
                  - cell "25 May 2026" [ref=e487]:
                    - link "25 May 2026" [ref=e488] [cursor=pointer]:
                      - /url: /customers/436885871
                      - generic [ref=e489]: 25 May 2026
            - generic [ref=e492]:
              - generic [ref=e493]:
                - generic [ref=e494]: "Items per page:"
                - combobox [ref=e497]:
                  - generic [ref=e499] [cursor=pointer]:
                    - generic [ref=e501]: "10"
                    - combobox "Items per page:": "10"
                  - generic [ref=e503]: 󰍝
              - generic [ref=e504]: 1-5 of 5
              - generic [ref=e505]:
                - button [disabled]:
                  - generic:
                    - generic: 󰘀
                - button [disabled]:
                  - generic:
                    - generic: 󰅁
                - button [disabled]:
                  - generic:
                    - generic: 󰅂
                - button [disabled]:
                  - generic:
                    - generic: 󰘁
  - generic:
    - 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
```

# Test source

```ts
  1   | import { getCustomerCreateData } from '@/manager/modules/customer/customer-factories';
  2   | import { test } from '@/manager/modules/customer/customer-fixtures';
  3   | import { formatCustomerName } from '@/manager/modules/customer/customer-utils';
  4   | import { customerCreateHappyTestCases } from '@/manager/modules/customer/test-cases/customer-create-happy-test-cases';
  5   | import {
  6   |   expectDataTableChipsColumnToHaveText,
  7   |   expectDataTableTextColumnToHaveText,
  8   | } from '@/manager/modules/ui/data-table/data-table-assertions';
  9   | import { customerTableColumnTestIds } from '@/manager/modules/ui/data-table/data/data-table-column-test-ids';
  10  | import { expectMultiLocatorToHaveText, expectSingleLocatorToHaveText } from '@/manager/shared/utils/expect-utils';
  11  | import { vatTypes } from '@/shared/data/seed-vat-types';
  12  | import { formatAddress, formatCurrency, formatDate, formatPhone } from '@/shared/utils/formatters';
  13  | import { expect } from '@/shared/utils/matchers';
  14  | 
  15  | for (const tc of customerCreateHappyTestCases) {
  16  |   test(tc.description, async ({ customerCreateDialog, trackCustomerForTeardown }) => {
  17  |     const data = getCustomerCreateData(tc.options);
  18  |     const customerFullName = formatCustomerName(data.firstName, data.lastName);
  19  |     const customerTitle = data.type === 'business' ? data.companyName : customerFullName;
  20  |     const customerPhone = formatPhone(data.phone);
  21  |     const customerAddress = formatAddress(data.street, data.postalCode, data.city, data.country.name);
  22  |     const customerStatus = 'lead';
  23  |     const customerCreatedAt = formatDate(new Date());
  24  |     const customerCurrency = data.locations[0].currency;
  25  |     const customerLocationNames = data.locations.map((l) => l.name);
  26  |     const zeroAmount = formatCurrency(0, customerCurrency);
  27  | 
  28  |     await customerCreateDialog.goto();
  29  | 
  30  |     const detailsPage = await test.step('create customer', () => customerCreateDialog.create(data));
  31  | 
  32  |     trackCustomerForTeardown(detailsPage.getCustomerId());
  33  | 
  34  |     await test.step('verify new customer on details page', async () => {
  35  |       await expectSingleLocatorToHaveText(detailsPage.title, customerTitle);
  36  |       await expectSingleLocatorToHaveText(detailsPage.status, customerStatus);
  37  |       await expectMultiLocatorToHaveText(detailsPage.generalCard.locations, customerLocationNames);
  38  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.type, data.type);
  39  | 
  40  |       if (data.type === 'business') {
  41  |         await expectSingleLocatorToHaveText(detailsPage.generalCard.companyName, data.companyName);
  42  |         await expectSingleLocatorToHaveText(detailsPage.generalCard.vatType, data.vatType?.name);
  43  |         await expectSingleLocatorToHaveText(detailsPage.generalCard.vatNumber, data.vatNumber);
  44  |       } else {
  45  |         await expect(detailsPage.generalCard.companyName).toBeHidden();
  46  |         await expect(detailsPage.generalCard.vatType).toBeHidden();
  47  |         await expect(detailsPage.generalCard.vatNumber).toBeHidden();
  48  |       }
  49  | 
  50  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.name, customerFullName);
  51  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.email, data.email);
  52  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.phoneNumber, customerPhone);
  53  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.language, data.language.id);
  54  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.address, customerAddress);
  55  |       await expectSingleLocatorToHaveText(detailsPage.generalCard.note, data.note);
  56  | 
  57  |       await expect(detailsPage.detailsCard.customerId).not.toBeEmpty();
  58  |       await expectSingleLocatorToHaveText(detailsPage.detailsCard.createdAt, customerCreatedAt);
  59  |       await expectSingleLocatorToHaveText(detailsPage.detailsCard.totalSpent, zeroAmount);
  60  |       await expectSingleLocatorToHaveText(detailsPage.detailsCard.totalPastDueAmount, zeroAmount);
  61  |       await expect(detailsPage.detailsCard.paymentMethods).toHaveCount(0);
  62  |       await expectSingleLocatorToHaveText(
  63  |         detailsPage.detailsCard.accountsReceivableNumber,
  64  |         data.accountsReceivableNumber
  65  |       );
  66  | 
  67  |       await expect(detailsPage.bookingsCard.main).toBeHidden();
  68  |       await expect(detailsPage.invoicesCard.main).toBeHidden();
  69  |     });
  70  | 
  71  |     await test.step('verify new customer on list page', async () => {
  72  |       const listPage = await detailsPage.returnToCustomerListPage();
  73  | 
  74  |       await listPage.searchTextField.fill(data.email);
  75  | 
> 76  |       await expect(listPage.dataTable.getRows()).toHaveCount(1);
      |                                                  ^ Error: expect(locator).toHaveCount(expected) failed
  77  |       await expect(listPage.dataTable.getRowColumn(0, customerTableColumnTestIds.id)).not.toBeEmpty();
  78  |       await expectDataTableTextColumnToHaveText(listPage.dataTable, customerTableColumnTestIds.name, customerTitle);
  79  |       await expectDataTableChipsColumnToHaveText(
  80  |         listPage.dataTable,
  81  |         customerTableColumnTestIds.locations,
  82  |         customerLocationNames
  83  |       );
  84  |       await expectDataTableTextColumnToHaveText(listPage.dataTable, customerTableColumnTestIds.email, data.email);
  85  |       await expectDataTableTextColumnToHaveText(
  86  |         listPage.dataTable,
  87  |         customerTableColumnTestIds.phoneNumber,
  88  |         customerPhone
  89  |       );
  90  |       await expectDataTableChipsColumnToHaveText(listPage.dataTable, customerTableColumnTestIds.status, customerStatus);
  91  |       await expectDataTableChipsColumnToHaveText(
  92  |         listPage.dataTable,
  93  |         customerTableColumnTestIds.hasPastDueInvoices,
  94  |         'none'
  95  |       );
  96  |       await expectDataTableTextColumnToHaveText(
  97  |         listPage.dataTable,
  98  |         customerTableColumnTestIds.createdAt,
  99  |         customerCreatedAt
  100 |       );
  101 |     });
  102 |   });
  103 | }
  104 | 
  105 | test('rejects a private customer without all required fields', async ({ customerCreateDialog }) => {
  106 |   const data = getCustomerCreateData({ type: 'private', firstName: '', lastName: '' });
  107 | 
  108 |   await customerCreateDialog.goto();
  109 | 
  110 |   await test.step('submit invalid customer create form', async () => {
  111 |     await customerCreateDialog.fill(data);
  112 |     await customerCreateDialog.submit();
  113 |   });
  114 | 
  115 |   await test.step('verify errors on form', async () => {
  116 |     await expect(customerCreateDialog.errors).toHaveCountGreaterThan(0);
  117 |   });
  118 | });
  119 | 
  120 | test('rejects a business customer without all required fields', async ({ customerCreateDialog }) => {
  121 |   const data = getCustomerCreateData({ type: 'business', companyName: '' });
  122 | 
  123 |   await customerCreateDialog.goto();
  124 | 
  125 |   await test.step('submit invalid customer create form', async () => {
  126 |     await customerCreateDialog.fill(data);
  127 |     await customerCreateDialog.submit();
  128 |   });
  129 | 
  130 |   await test.step('verify errors on form', async () => {
  131 |     await expect(customerCreateDialog.errors).toHaveCountGreaterThan(0);
  132 |   });
  133 | });
  134 | 
  135 | test('rejects a customer with a duplicate email', async ({ createCustomer, customerCreateDialog }) => {
  136 |   const existing = await createCustomer(getCustomerCreateData());
  137 |   const data = getCustomerCreateData({ email: existing.email });
  138 | 
  139 |   await customerCreateDialog.goto();
  140 | 
  141 |   await test.step('submit customer create form with duplicate email', async () => {
  142 |     await customerCreateDialog.fill(data);
  143 |     await customerCreateDialog.submit();
  144 |   });
  145 | 
  146 |   await test.step('verify errors on form', async () => {
  147 |     await expect(customerCreateDialog.errors).toHaveCountGreaterThan(0);
  148 |   });
  149 | });
  150 | 
  151 | test('rejects a customer with a duplicate phone number', async ({ createCustomer, customerCreateDialog }) => {
  152 |   const existing = await createCustomer(getCustomerCreateData());
  153 |   const data = getCustomerCreateData({ phone: existing.phone, country: existing.country });
  154 | 
  155 |   await customerCreateDialog.goto();
  156 | 
  157 |   await test.step('submit customer create form with duplicate phone number', async () => {
  158 |     await customerCreateDialog.fill(data);
  159 |     await customerCreateDialog.submit();
  160 |   });
  161 | 
  162 |   await test.step('verify errors on form', async () => {
  163 |     await expect(customerCreateDialog.errors).toHaveCountGreaterThan(0);
  164 |   });
  165 | });
  166 | 
  167 | test('rejects a customer with a vat number that does not match the vat type', async ({ customerCreateDialog }) => {
  168 |   const data = getCustomerCreateData({
  169 |     type: 'business',
  170 |     vatType: vatTypes.eu_vat,
  171 |     vatNumber: 'INVALID-VAT-1234',
  172 |   });
  173 | 
  174 |   await customerCreateDialog.goto();
  175 | 
  176 |   await test.step('submit customer create form with mismatched vat type and number', async () => {
```