🎭 RTL tests will use cached network responses
  console.log
    🎭 [setup] Setting jsdom URL

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:57:17)

  console.log
    🎭 [setup] Setting global log level

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:69:17)

  console.log
    🎭 [setup] Polyfilling TextEncoder/TextDecoder

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:78:17)

  console.log
    🎭 [setup] Polyfilling Web Streams API

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:86:17)

  console.log
    🎭 [setup] Checking fetch

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:98:17)

  console.log
    ⚠️  Native fetch not available, falling back to whatwg-fetch

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:100:21)

  console.log
    🎭 [setup] Polyfilling BroadcastChannel

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:110:17)

  console.log
    🎭 [MSW init] requiring msw/node

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:126:17)

  console.log
    🎭 [MSW init] requiring handlers

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:128:17)

  console.log
    📦 NDJSON cache ready for on-demand reading: /home/blurry/lino/env/repositories/react/network-testing/logs/network-log-rtl-noi.ndjson

      at new RTLNetworkLogger (lino_react/react/testSetup/mswHandlers.ts:122:25)

  console.log
    🎭 [MSW init] creating server instance

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:130:17)

  console.log
    🎭 [MSW init] server instance ready

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:132:17)

  console.log
    🎭 [MSW init] beforeAll entered

      at console.Object.<anonymous>.console.log (lino_react/react/testSetup/setupTests.ts:160:9)

  console.log
    🎭 [MSW init] awaiting cache readiness

      at console.Object.<anonymous>.console.log (lino_react/react/testSetup/setupTests.ts:160:9)

  console.log
    🎭 [MSW init] calling server.listen

      at console.Object.<anonymous>.console.log (lino_react/react/testSetup/setupTests.ts:160:9)

  console.log
    🎭 MSW server started for RTL tests

      at console.Object.<anonymous>.console.log (lino_react/react/testSetup/setupTests.ts:160:9)

  console.log
    📦 Network requests will be served from cached responses

      at console.Object.<anonymous>.console.log (lino_react/react/testSetup/setupTests.ts:160:9)

  console.log
    🛑 MSW server stopped

      at Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:197:17)

FAIL lino_react/react/components/__tests__/noi/functional.tsx (19.262 s)
  (noi) functional.tsx
    user type 900 (en)
      ✕ Test sign in dialog on 403 status code (7060 ms)
      ○ skipped render App
      ○ skipped FullParamsPanel on tickets.AllTickets
    user type 000 (en)
      ○ skipped test sign in and sign out

  ● (noi) functional.tsx › user type 900 (en) › Test sign in dialog on 403 status code

    TestingLibraryElementError: Unable to find an element with the text: Username:. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

    Ignored nodes: comments, script, style
    [36m<body>[39m
      [36m<div>[39m
        [36m<div[39m
          [33mclass[39m=[32m"p-toast p-component p-toast-top-right p-ripple-disabled"[39m
          [33mdata-pc-name[39m=[32m"toast"[39m
          [33mdata-pc-section[39m=[32m"root"[39m
          [33mstyle[39m=[32m"position: fixed; top: 20px; right: 20px;"[39m
        [36m>[39m
          [36m<div />[39m
        [36m</div>[39m
        [36m<div[39m
          [33mclass[39m=[32m"layout-wrapper layout-static"[39m
        [36m>[39m
          [36m<div[39m
            [33mclass[39m=[32m"layout-topbar clearfix"[39m
            [33mstyle[39m=[32m"top: 0px;"[39m
          [36m>[39m
            [36m<a[39m
              [33mclass[39m=[32m"layout-menu-button"[39m
            [36m>[39m
              [36m<span[39m
                [33mclass[39m=[32m"pi pi-bars"[39m
              [36m/>[39m
            [36m</a>[39m
            [36m<a[39m
              [33mclass[39m=[32m"layout-home-button"[39m
            [36m>[39m
              [36m<span[39m
                [33mclass[39m=[32m"pi pi-home"[39m
              [36m/>[39m
            [36m</a>[39m
            [36m<div[39m
              [33mclass[39m=[32m"layout-topbar-icons"[39m
              [33mstyle[39m=[32m"display: inline;"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"profile"[39m
              [36m>[39m
                [36m<div[39m
                  [33mid[39m=[32m"pinned-url-container"[39m
                [36m/>[39m
                [36m<span>[39m
                  [0m | [0m
                [36m</span>[39m
                [36m<span[39m
                  [33mclass[39m=[32m"l-span-clickable"[39m
                  [33mtitle[39m=[32m"Clear site cache & URL parameters"[39m
                [36m>[39m
                  [0m ⎚ [0m
                [36m</span>[39m
                [36m<span>[39m
                  [0m | [0m
                [36m</span>[39m
                [36m<button[39m
                  [33mclass[39m=[32m"p-button p-component"[39m
                  [33mdata-pc-name[39m=[32m"button"[39m
                  [33mdata-pc-section[39m=[32m"root"[39m
                [36m>[39m
                  [36m<span[39m
                    [33mclass[39m=[32m"p-button-label p-c"[39m
                    [33mdata-pc-section[39m=[32m"label"[39m
                  [36m>[39m
                    [0m [0m
                  [36m</span>[39m
                [36m</button>[39m
                [36m<span>[39m
                  [0m | [0m
                [36m</span>[39m
                [36m<button[39m
                  [33maria-label[39m=[32m"Sign in"[39m
                  [33mclass[39m=[32m"p-button p-component"[39m
                  [33mdata-pc-name[39m=[32m"button"[39m
                  [33mdata-pc-section[39m=[32m"root"[39m
                [36m>[39m
                  [36m<span[39m
                    [33mclass[39m=[32m"p-button-icon p-c p-button-icon-left pi pi-power-off"[39m
                    [33mdata-pc-section[39m=[32m"icon"[39m
                  [36m/>[39m
                  [36m<span[39m
                    [33mclass[39m=[32m"p-button-label p-c"[39m
                    [33mdata-pc-section[39m=[32m"label"[39m
                  [36m>[39m
                    [0mSign in[0m
                  [36m</span>[39m
                [36m</button>[39m
              [36m</div>[39m
            [36m</div>[39m
            [36m<div[39m
              [33mid[39m=[32m"l-top-links"[39m
              [33mstyle[39m=[32m"display: inline; float: right; margin-right: 10px;"[39m
            [36m>[39m
              [36m<div />[39m
            [36m</div>[39m
          [36m</div>[39m
          [36m<div[39m
            [33mclass[39m=[32m"layout-mask"[39m
          [36m/>[39m
          [36m<div[39m
            [33mclass[39m=[32m"layout-sidebar layout-sidebar-dark"[39m
          [36m>[39m
            [36m<div[39m
              [33mclass[39m=[32m"p-scrollpanel p-component"[39m
              [33mdata-pc-name[39m=[32m"scrollpanel"[39m
              [33mdata-pc-section[39m=[32m"root"[39m
              [33mstyle[39m=[32m"height: 100%;"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"p-scrollpanel-wrapper"[39m
                [33mdata-pc-section[39m=[32m"wrapper"[39m
              [36m>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"p-scrollpanel-content"[39m
                  [33mdata-pc-section[39m=[32m"content"[39m
                [36m>[39m
                  [36m<div[39m
                    [33mclass[39m=[32m"layout-sidebar-scroll-content"[39m
                  [36m>[39m
                    [36m<div[39m
                      [33mclass[39m=[32m"menu"[39m
                    [36m>[39m
                      [36m<ul[39m
                        [33mclass[39m=[32m"layout-main-menu"[39m
                      [36m>[39m
                        [36m<li[39m
                          [33mclass[39m=[32m" l-menuitem"[39m
                          [33mid[39m=[32m"m0_Working_time"[39m
                        [36m>[39m
                          [36m<div[39m
                            [33mclass[39m=[32m"arrow"[39m
                          [36m/>[39m
                          [36m<a>[39m
                            [36m<i />[39m
                            [36m<span>[39m
                              [0mWorking time[0m
                            [36m</span>[39m
                            [36m<i[39m
                              [33mclass[39m=[32m"pi pi-fw pi-angle-down menuitem-toggle-icon"[39m
                            [36m/>[39m
                          [36m</a>[39m
                          [36m<ul>[39m
                            [36m<li[39m
                              [33mclass[39m=[32m" l-menuitem"[39m
                              [33mid[39m=[32m"m1_All_tickets"[39m
                            [36m>[39m
                              [36m<a>[39m
                                [36m<i />[39m
                                [36m<span>[39m
                                  [0mAll tickets[0m
                                [36m</span>[39m
                              [36m</a>[39m
                            [36m</li>[39m
                          [36m</ul>[39m
                        [36m</li>[39m
                        [36m<li[39m
                          [33mclass[39m=[32m" l-menuitem"[39m
                          [33mid[39m=[32m"m2_Office"[39m
                        [36m>[39m
                          [36m<div[39m
                            [33mclass[39m=[32m"arrow"[39m
                          [36m/>[39m
                          [36m<a>[39m
                            [36m<i />[39m
                            [36m<span>[39m
                              [0mOffice[0m
                            [36m</span>[39m
                            [36m<i[39m
                              [33mclass[39m=[32m"pi pi-fw pi-angle-down menuitem-toggle-icon"[39m
                            [36m/>[39m
                          [36m</a>[39m
                          [36m<ul>[39m
                            [36m<li[39m
                              [33mclass[39m=[32m" l-menuitem"[39m
                              [33mid[39m=[32m"m3_Recent_comments"[39m
                            [36m>...

      134 |
      135 |             await act(async () => {
    > 136 |                 const usernameLabel = screen.getByText('Username:');
          |                                              ^
      137 |                 const signInDialog = usernameLabel.closest('.p-dialog') as HTMLElement;
      138 |                 expect(signInDialog).toBeTruthy();
      139 |                 fireEvent.click(within(signInDialog).getByRole('button', { name: /^OK$/ }));

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at lino_react/react/components/__tests__/noi/functional.tsx:136:46
      at act (node_modules/react/cjs/react.development.js:2512:16)
      at Object.<anonymous> (lino_react/react/components/__tests__/noi/functional.tsx:135:22)
      at async Object.<anonymous> (lino_react/react/testSetup/setupTests.ts:430:24)

  ● (noi) functional.tsx › user type 900 (en) › Test sign in dialog on 403 status code

    Unable to find an element with the text: /Hi, Robin Rood!/. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

    Ignored nodes: comments, script, style
    [36m<body>[39m
      [36m<div>[39m
        [36m<div[39m
          [33mclass[39m=[32m"p-toast p-component p-toast-top-right p-ripple-disabled"[39m
          [33mdata-pc-name[39m=[32m"toast"[39m
          [33mdata-pc-section[39m=[32m"root"[39m
          [33mstyle[39m=[32m"position: fixed; top: 20px; right: 20px;"[39m
        [36m>[39m
          [36m<div />[39m
        [36m</div>[39m
        [36m<div[39m
          [33mclass[39m=[32m"layout-wrapper layout-static"[39m
        [36m>[39m
          [36m<div[39m
            [33mclass[39m=[32m"layout-topbar clearfix"[39m
            [33mstyle[39m=[32m"top: 0px;"[39m
          [36m>[39m
            [36m<a[39m
              [33mclass[39m=[32m"layout-menu-button"[39m
            [36m>[39m
              [36m<span[39m
                [33mclass[39m=[32m"pi pi-bars"[39m
              [36m/>[39m
            [36m</a>[39m
            [36m<a[39m
              [33mclass[39m=[32m"layout-home-button"[39m
            [36m>[39m
              [36m<span[39m
                [33mclass[39m=[32m"pi pi-home"[39m
              [36m/>[39m
            [36m</a>[39m
            [36m<div[39m
              [33mclass[39m=[32m"layout-topbar-icons"[39m
              [33mstyle[39m=[32m"display: inline;"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"profile"[39m
              [36m>[39m
                [36m<div[39m
                  [33mid[39m=[32m"pinned-url-container"[39m
                [36m/>[39m
                [36m<span>[39m
                  [0m | [0m
                [36m</span>[39m
                [36m<span[39m
                  [33mclass[39m=[32m"l-span-clickable"[39m
                  [33mtitle[39m=[32m"Clear site cache & URL parameters"[39m
                [36m>[39m
                  [0m ⎚ [0m
                [36m</span>[39m
                [36m<span>[39m
                  [0m | [0m
                [36m</span>[39m
                [36m<button[39m
                  [33mclass[39m=[32m"p-button p-component"[39m
                  [33mdata-pc-name[39m=[32m"button"[39m
                  [33mdata-pc-section[39m=[32m"root"[39m
                [36m>[39m
                  [36m<span[39m
                    [33mclass[39m=[32m"p-button-label p-c"[39m
                    [33mdata-pc-section[39m=[32m"label"[39m
                  [36m>[39m
                    [0m [0m
                  [36m</span>[39m
                [36m</button>[39m
                [36m<span>[39m
                  [0m | [0m
                [36m</span>[39m
                [36m<button[39m
                  [33maria-label[39m=[32m"Sign in"[39m
                  [33mclass[39m=[32m"p-button p-component"[39m
                  [33mdata-pc-name[39m=[32m"button"[39m
                  [33mdata-pc-section[39m=[32m"root"[39m
                [36m>[39m
                  [36m<span[39m
                    [33mclass[39m=[32m"p-button-icon p-c p-button-icon-left pi pi-power-off"[39m
                    [33mdata-pc-section[39m=[32m"icon"[39m
                  [36m/>[39m
                  [36m<span[39m
                    [33mclass[39m=[32m"p-button-label p-c"[39m
                    [33mdata-pc-section[39m=[32m"label"[39m
                  [36m>[39m
                    [0mSign in[0m
                  [36m</span>[39m
                [36m</button>[39m
              [36m</div>[39m
            [36m</div>[39m
            [36m<div[39m
              [33mid[39m=[32m"l-top-links"[39m
              [33mstyle[39m=[32m"display: inline; float: right; margin-right: 10px;"[39m
            [36m>[39m
              [36m<div />[39m
            [36m</div>[39m
          [36m</div>[39m
          [36m<div[39m
            [33mclass[39m=[32m"layout-mask"[39m
          [36m/>[39m
          [36m<div[39m
            [33mclass[39m=[32m"layout-sidebar layout-sidebar-dark"[39m
          [36m>[39m
            [36m<div[39m
              [33mclass[39m=[32m"p-scrollpanel p-component"[39m
              [33mdata-pc-name[39m=[32m"scrollpanel"[39m
              [33mdata-pc-section[39m=[32m"root"[39m
              [33mstyle[39m=[32m"height: 100%;"[39m
            [36m>[39m
              [36m<div[39m
                [33mclass[39m=[32m"p-scrollpanel-wrapper"[39m
                [33mdata-pc-section[39m=[32m"wrapper"[39m
              [36m>[39m
                [36m<div[39m
                  [33mclass[39m=[32m"p-scrollpanel-content"[39m
                  [33mdata-pc-section[39m=[32m"content"[39m
                [36m>[39m
                  [36m<div[39m
                    [33mclass[39m=[32m"layout-sidebar-scroll-content"[39m
                  [36m>[39m
                    [36m<div[39m
                      [33mclass[39m=[32m"menu"[39m
                    [36m>[39m
                      [36m<ul[39m
                        [33mclass[39m=[32m"layout-main-menu"[39m
                      [36m>[39m
                        [36m<li[39m
                          [33mclass[39m=[32m" l-menuitem"[39m
                          [33mid[39m=[32m"m0_Working_time"[39m
                        [36m>[39m
                          [36m<div[39m
                            [33mclass[39m=[32m"arrow"[39m
                          [36m/>[39m
                          [36m<a>[39m
                            [36m<i />[39m
                            [36m<span>[39m
                              [0mWorking time[0m
                            [36m</span>[39m
                            [36m<i[39m
                              [33mclass[39m=[32m"pi pi-fw pi-angle-down menuitem-toggle-icon"[39m
                            [36m/>[39m
                          [36m</a>[39m
                          [36m<ul>[39m
                            [36m<li[39m
                              [33mclass[39m=[32m" l-menuitem"[39m
                              [33mid[39m=[32m"m1_All_tickets"[39m
                            [36m>[39m
                              [36m<a>[39m
                                [36m<i />[39m
                                [36m<span>[39m
                                  [0mAll tickets[0m
                                [36m</span>[39m
                              [36m</a>[39m
                            [36m</li>[39m
                          [36m</ul>[39m
                        [36m</li>[39m
                        [36m<li[39m
                          [33mclass[39m=[32m" l-menuitem"[39m
                          [33mid[39m=[32m"m2_Office"[39m
                        [36m>[39m
                          [36m<div[39m
                            [33mclass[39m=[32m"arrow"[39m
                          [36m/>[39m
                          [36m<a>[39m
                            [36m<i />[39m
                            [36m<span>[39m
                              [0mOffice[0m
                            [36m</span>[39m
                            [36m<i[39m
                              [33mclass[39m=[32m"pi pi-fw pi-angle-down menuitem-toggle-icon"[39m
                            [36m/>[39m
                          [36m</a>[39m
                          [36m<ul>[39m
                            [36m<li[39m
                              [33mclass[39m=[32m" l-menuitem"[39m
                              [33mid[39m=[32m"m3_Recent_comments"[39m
                            [36m>...

      71 |             }
      72 |
    > 73 |             await waitFor(() => {
         |                          ^
      74 |                 expect(screen.getByText(/Hi, Robin Rood!/)).toBeTruthy();
      75 |             }, { timeout: 5000 });
      76 |         });

      at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
      at Object.<anonymous> (lino_react/react/components/__tests__/noi/functional.tsx:73:26)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 3 skipped, 4 total
Snapshots:   0 total
Time:        20.348 s
Ran all test suites matching /lino_react\/react\/components\/__tests__\/noi\/functional.tsx/i with tests matching "Test sign in dialog on 403 status code".
