> job-tracker-ui@0.1.0 test > jest --runInBand admin-system-page.test.tsx node.exe : FAIL src/admin-system-page.test.tsx (7.531 s) At line:1 char:1 + & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (FAIL src/admin-...t.tsx (7.531 s):String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError ● AdminSystemPage › keeps the last diagnostic values under a qualified refresh error TestingLibraryElementError: Unable to find an element with the text: Last successful status refresh. 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  
    Run probe now   Refresh  
      Status   Settings            Environment   Production 

  Version 1.2.3 · Commit abc1234 

    Database   Connected 

  mariadb · server=db 

    SMTP   Enabled 

  smtp.example.test 

  ); 384 | await screen.findByText('Production'); > 385 | const readTime = screen.getByText('Last successful status refresh').parentElement?.querySelector('time'); | ^ 386 | const original = readTime?.dateTime; 387 | expect(original).toMatch(/^\d{4}-\d{2}-\d{2}T.*Z$/); 388 | const get = mockedApi.get.getMockImplementation()!; 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 Object.getByText (src/admin-system-page.test.tsx:385:29) Test Suites: 1 failed, 1 total Tests: 1 failed, 19 passed, 20 total Snapshots: 0 total Time: 8.385 s, estimated 15 s Ran all test suites matching admin-system-page.test.tsx.