cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.01k stars 3.18k forks source link

Cypress Test Failures Running Headless Chrome 121 Or Greater #29036

Closed samdevaprasadvarde closed 3 months ago

samdevaprasadvarde commented 8 months ago

Current behavior

Ever since chrome upgraded to v121 we see the first test file fail and produce this error: image

Note: We have a few test files. It's always the first test file that fails even if we switch the order of which test file gets executed.

Other tests: Fails for browser edge, but works on browser electron. Here’s the script we run cypress run –browser chrome –config video=false –config-file cypress/config/config.dev.js

Desired behavior

I tested and downloaded an older version of chrome v120 from here: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/1217371/ Run it like this cypress run –browser C:/Users/x/dev/projects/chrome-win/chrome.exe:chrome –config video=false –config-file cypress/config/config.dev.js Basically following this guide: https://docs.cypress.io/guides/guides/launching-browsers and there are no issues.

Test code to reproduce

We are running our tests on our dev/qa/prod sites that are not eternally facing and authenticate with Azure like this: image

So linking code for you to run may not work. Here's a sample test in the first test file that is failing: image

Cypress Version

13.6.6

Node version

18.17.1

Operating System

Microsoft Windows 11 Enterprise (10.0.22631)

Debug Logs

cypress:server:socket-base automation:request take:screenshot { titles: [ 'Test Agreements UI', 'Check if filter works' ], testId: 'r3', testAttemptIndex: 3, simple: true, testFailure: true, capture: 'runner', clip: { x: 0, y: 0, width: 1264, height: 594 }, viewport: { width: 1264, height: 594 }, scaled: true, blackout: [], overwrite: false, startTime: '2024-02-29T15:17:31.830Z' } +14s
cypress:server:screenshot (s187) capturing screenshot { titles: [ 'Test Agreements UI', 'Check if filter works' ], testId: 'r3', testAttemptIndex: 3, simple: true, testFailure: true, capture: 'runner', clip: { x: 0, y: 0, width: 1264, height: 594 }, viewport: { width: 1264, height: 594 }, scaled: true, blackout: [], overwrite: false, startTime: '2024-02-29T15:17:31.830Z', specName: 'abcd_agreements_tests.js' } +45s
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler ┌─────────┬───────────┬──────────────┬─────────────────────────────────────────────────────────────┬────────────┬────────────────┬──────────┬──────────────┬─────────────┐
cypress:server:util:process_profiler │ (index) │   group   │ processCount │                            pids                             │ cpuPercent │ meanCpuPercent │ memRssMb │ meanMemRssMb │ maxMemRssMb │
cypress:server:util:process_profiler ├─────────┼───────────┼──────────────┼─────────────────────────────────────────────────────────────┼────────────┼────────────────┼──────────┼──────────────┼─────────────┤
cypress:server:util:process_profiler │    0    │ 'Chrome'  │      7       │ '47140, 31956, 49160, 45196, 19160, 40380 ... 1 more items' │    12.6    │      6.13      │  754.31  │    679.46    │   816.07    │
cypress:server:util:process_profiler │    1    │ 'cypress' │      1       │                           '11484'                           │    0.83    │      0.52      │  328.93  │    317.86    │   338.92    │
cypress:server:util:process_profiler │    2    │  'other'  │      4       │                 '51864, 1284, 45364, 1844'                  │    0.02    │      0.01      │  184.8   │    184.89    │   185.15    │
cypress:server:util:process_profiler │    3    │ 'plugin'  │      2       │                       '50948, 43844'                        │    0.89    │      0.4       │  105.93  │    106.07    │   155.22    │
cypress:server:util:process_profiler │    4    │  'TOTAL'  │      14      │                             '-'                             │   14.33    │      6.68      │ 1373.97  │   1245.81    │   1437.08   │
cypress:server:util:process_profiler └─────────┴───────────┴──────────────┴─────────────────────────────────────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +13s
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler ┌─────────┬───────────┬──────────────┬─────────────────────────────────────────────────────────────┬────────────┬────────────────┬──────────┬──────────────┬─────────────┐
cypress:server:util:process_profiler │ (index) │   group   │ processCount │                            pids                             │ cpuPercent │ meanCpuPercent │ memRssMb │ meanMemRssMb │ maxMemRssMb │
cypress:server:util:process_profiler ├─────────┼───────────┼──────────────┼─────────────────────────────────────────────────────────────┼────────────┼────────────────┼──────────┼──────────────┼─────────────┤
cypress:server:util:process_profiler │    0    │ 'Chrome'  │      7       │ '47140, 31956, 49160, 45196, 19160, 40380 ... 1 more items' │    5.27    │      6.07      │  621.88  │    675.86    │   816.07    │
cypress:server:util:process_profiler │    1    │ 'cypress' │      1       │                           '11484'                           │    0.14    │      0.5       │  314.89  │    317.68    │   338.92    │
cypress:server:util:process_profiler │    2    │  'other'  │      4       │                 '51864, 1284, 20944, 54440'                 │     0      │      0.01      │  184.85  │    184.89    │   185.15    │
cypress:server:util:process_profiler │    3    │ 'plugin'  │      2       │                       '50948, 43844'                        │     0      │      0.38      │  105.93  │    106.06    │   155.22    │
cypress:server:util:process_profiler │    4    │  'TOTAL'  │      14      │                             '-'                             │    5.41    │      6.6       │ 1227.55  │   1244.74    │   1437.08   │
cypress:server:util:process_profiler └─────────┴───────────┴──────────────┴─────────────────────────────────────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +13s
cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 64662 } +28s
cypress:server:server-base Got CONNECT request from safebrowsing.googleapis.com:443 +38s
cypress:https-proxy Writing browserSocket connection headers { url: 'safebrowsing.googleapis.com:443', headLength: 0, headers: { host: 'safebrowsing.googleapis.com:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/121.0.0.0 Safari/537.36' } } +38s
cypress:https-proxy Got first head bytes { url: 'safebrowsing.googleapis.com:443', head: "\x16\x03\x01\x02>\x01\x00\x02:\x03\x03\x05xy\x1Cw�y\x07�:� /�\x16%��M�\x18jc\x02�?\x11~NF�� 3� l'��{�\x18�$�_\x16\x19��W�" } +1ms
cypress:https-proxy Making intercepted connection to 64633 +19ms
cypress:network:connect successfully connected { opts: { port: 64633, host: 'localhost', getDelayMsForRetry: [Function: h] }, iteration: 0 } +38s
cypress:https-proxy received upstreamSocket callback for request { port: 64633, hostname: 'localhost', err: undefined } +2ms
cypress:server:util:socket_allowed allowing socket { localPort: 49321 } +336ms
cypress:launcher:browsers chrome stderr: [47140:50140:0229/101757.899:ERROR:cert_verify_proc_builtin.cc(766)] CertVerifyProcBuiltin for safebrowsing.googleapis.com failed:
----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=safebrowsing.googleapis.com) -----
ERROR: No matching issuer found +2m
cypress:server:server-base Got CONNECT request from safebrowsing.googleapis.com:443 +252ms
cypress:https-proxy Writing browserSocket connection headers { url: 'safebrowsing.googleapis.com:443', headLength: 0, headers: { host: 'safebrowsing.googleapis.com:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/121.0.0.0 Safari/537.36' } } +230ms
cypress:https-proxy Got first head bytes { url: 'safebrowsing.googleapis.com:443', head: '\x16\x03\x01\x02>\x01\x00\x02:\x03\x03V{o\x19_>8]�wj����N�\x05q�\x1E\x03)͟.x��G�L ��[�:��JN|u��w\x17o=�Tī�' } +1ms
cypress:https-proxy Making intercepted connection to 64633 +0ms
cypress:network:connect successfully connected { opts: { port: 64633, host: 'localhost', getDelayMsForRetry: [Function: h] }, iteration: 0 } +232ms
cypress:https-proxy received upstreamSocket callback for request { port: 64633, hostname: 'localhost', err: undefined } +1ms
cypress:server:util:socket_allowed allowing socket { localPort: 49323 } +232ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler ┌─────────┬───────────┬──────────────┬─────────────────────────────────────────────────────────────┬────────────┬────────────────┬──────────┬──────────────┬─────────────┐
cypress:server:util:process_profiler │ (index) │   group   │ processCount │                            pids                             │ cpuPercent │ meanCpuPercent │ memRssMb │ meanMemRssMb │ maxMemRssMb │
cypress:server:util:process_profiler ├─────────┼───────────┼──────────────┼─────────────────────────────────────────────────────────────┼────────────┼────────────────┼──────────┼──────────────┼─────────────┤
cypress:server:util:process_profiler │    0    │ 'Chrome'  │      7       │ '47140, 31956, 49160, 45196, 19160, 40380 ... 1 more items' │    6.82    │      6.12      │  624.41  │    672.83    │   816.07    │
cypress:server:util:process_profiler │    1    │ 'cypress' │      1       │                           '11484'                           │    0.04    │      0.47      │  316.54  │    317.62    │   338.92    │
cypress:server:util:process_profiler │    2    │  'other'  │      4       │                 '51864, 1284, 5184, 18868'                  │    0.02    │      0.01      │  184.7   │    184.88    │   185.15    │
cypress:server:util:process_profiler │    3    │ 'plugin'  │      2       │                       '50948, 43844'                        │    0.92    │      0.41      │  105.93  │    106.05    │   155.22    │
cypress:server:util:process_profiler │    4    │  'TOTAL'  │      14      │                             '-'                             │    7.8     │      6.67      │ 1231.58  │   1244.01    │   1437.08   │
cypress:server:util:process_profiler └─────────┴───────────┴──────────────┴─────────────────────────────────────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +13s
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: 'one-dev', domain: 'abcd', tld: 'com' } +34s
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: 'one-dev', domain: 'abcd', tld: 'com' } +0ms
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'safebrowsing', tld: 'googleapis.com' } +1ms
cypress:server:remote-states getting remote state: undefined for: https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$req=Ch4KDGdvb2dsZWNocm9tZRIOMTIxLjAuNjE2Ny4xODUaDAgFEAEiBCABIAIoARoMCAEQASIEIAEgAigBGgwIAxABIgQgASACKAEaDAgOEAEiBCABIAIoARoMCAEQCCIEIAEgAigEGgwIDxABIgQgASACKAEaDAgKEAgiBCABIAIoARoMCAkQASIEIAEgAigBGgwICBABIgQgASACKAEaDAgNEAEiBCABIAIoARoMCAcQASIEIAEgAigBGgwIEBABIgQgASACKAEiAggB&$ct=application/x-protobuf&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw +34s
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'abcd', tld: 'com' } +1ms
cypress:server:remote-states getting remote state: { auth: null, origin: 'https://abcd.com', strategy: 'http', fileServer: null, domainName: 'abcd.com', props: { port: '443', protocol: 'https:', subdomain: 'one-dev', domain: 'abcd', tld: 'com' } } for: https://abcd.com +0ms
cypress:server:stream_buffer stream buffer writeable final called +35s
cypress:network:agent addRequest called { isHttps: true, href: 'https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$req=Ch4KDGdvb2dsZWNocm9tZRIOMTIxLjAuNjE2Ny4xODUaDAgFEAEiBCABIAIoARoMCAEQASIEIAEgAigBGgwIAxABIgQgASACKAEaDAgOEAEiBCABIAIoARoMCAEQCCIEIAEgAigEGgwIDxABIgQgASACKAEaDAgKEAgiBCABIAIoARoMCAkQASIEIAEgAigBGgwICBABIgQgASACKAEaDAgNEAEiBCABIAIoARoMCAcQASIEIAEgAigBGgwIEBABIgQgASACKAEiAggB&$ct=application/x-protobuf&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw' } +35s
cypress:network:connect beginning getAddress { hostname: 'safebrowsing.googleapis.com', port: 443 } +280ms
cypress:network:connect got addresses { hostname: 'safebrowsing.googleapis.com', port: 443, addresses: [ { address: '142.250.65.202', family: 4 } ] } +27ms
cypress:network:agent got family { family: 4, href: 'https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$req=Ch4KDGdvb2dsZWNocm9tZRIOMTIxLjAuNjE2Ny4xODUaDAgFEAEiBCABIAIoARoMCAEQASIEIAEgAigBGgwIAxABIgQgASACKAEaDAgOEAEiBCABIAIoARoMCAEQCCIEIAEgAigEGgwIDxABIgQgASACKAEaDAgKEAgiBCABIAIoARoMCAkQASIEIAEgAigBGgwICBABIgQgASACKAEaDAgNEAEiBCABIAIoARoMCAcQASIEIAEgAigBGgwIEBABIgQgASACKAEiAggB&$ct=application/x-protobuf&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw' } +28ms
cypress:server:request received status code & headers on request { requestId: 'request188', statusCode: 200, headers: { 'content-type': 'application/x-protobuf' } } +34s
cypress:server:request successful response received { requestId: 'request188' } +0ms
cypress:net-stubbing:server:intercept-response InterceptResponse { req: { url: '/v4/threatListUpdates:fetch?$req=Ch4KDGdvb2dsZWNocm9tZRIOMTIxLjAuNjE2Ny4xODUaDAgFEAEiBCABIAIoARoMCAEQASIEIAEgAigBGgwIAxABIgQgASACKAEaDAgOEAEiBCABIAIoARoMCAEQCCIEIAEgAigEGgwIDxABIgQgASACKAEaDAgKEAgiBCABIAIoARoMCAkQASIEIAEgAigBGgwICBABIgQgASACKAEaDAgNEAEiBCABIAIoARoMCAcQASIEIAEgAigBGgwIEBABIgQgASACKAEiAggB&$ct=application/x-protobuf&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw' }, request: undefined } +34s
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'abcd', tld: 'com' } +452ms
cypress:server:remote-states getting remote state: { auth: null, origin: 'https://abcd.com', strategy: 'http', fileServer: null, domainName: 'abcd.com', props: { port: '443', protocol: 'https:', subdomain: 'one-dev', domain: 'abcd', tld: 'com' } } for: https://abcd.com +452ms
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'safebrowsing', tld: 'googleapis.com' } +1ms
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'safebrowsing', tld: 'googleapis.com' } +1ms
cypress:server:remote-states getting primary remote state: { auth: null, origin: 'https://abcd.com', strategy: 'http', fileServer: null, domainName: 'abcd.com', props: { port: '443', protocol: 'https:', subdomain: 'one-dev', domain: 'abcd', tld: 'com' } } +2ms
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'safebrowsing', tld: 'googleapis.com' } +0ms
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'safebrowsing', tld: 'googleapis.com' } +0ms
cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'abcd', tld: 'com' } +2ms
cypress:server:remote-states getting remote state: { auth: null, origin: 'https://abcd.com', strategy: 'http', fileServer: null, domainName: 'abcd.com', props: { port: '443', protocol: 'https:', subdomain: 'one-dev', domain: 'abcd', tld: 'com' } } for: https://abcd.com +2ms
cypress:server:project onMocha fail +44s
  1) Check if filter works
cypress:server:reporter got mocha event 'fail' with args: [ { _testConfig: { testConfigList: [], unverifiedTestConfig: {}, applied: 'complete' }, id: 'r3', order: 1, title: 'Check if filter works', err: { message: '`cy.screenshot()` timed out waiting `30000ms` to complete.', name: 'CypressError', stack: 'CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:133657:73\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:4186:41\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at Promise._settlePromiseFromHandler (https://abcd.com/__cypress/runner/cypress_runner.js:1519:31)\n' + '    at Promise._settlePromise (https://abcd.com/__cypress/runner/cypress_runner.js:1576:18)\n' + '    at Promise._settlePromise0 (https://abcd.com/__cypress/runner/cypress_runner.js:1621:10)\n' + '    at Promise._settlePromises (https://abcd.com/__cypress/runner/cypress_runner.js:1697:18)\n' + '    at _drainQueueStep (https://abcd.com/__cypress/runner/cypress_runner.js:2407:12)\n' + '    at _drainQueue (https://abcd.com/__cypress/runner/cypress_runner.js:2400:9)\n' + '    at Async._drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2416:5)\n' + '    at Async.drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2286:14)', docsUrl: 'https://on.cypress.io/screenshot' }, state: 'failed', pending: false, body: 'function () {\n' + "    cy.visit('/agreements-ui/agreements');\n" + `    cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '      timeout: 45000\n' + '    }).within($footer => {\n' + `      cy.get('*[class^="Text"]', {\n` + '        timeout: 5000\n' + "      }).invoke('text').then(txt => {\n" + '        let sentence = txt.split(" ");\n' + '        let initialCount = sentence[0];\n' + '        let totalCount = sentence[2];\n' + "        cy.wrap(initialCount).as('initialCount');\n" + "        cy.wrap(totalCount).as('totalCount');\n" + '      });\n' + '    });\n' + '    cy.wait(3000);\n' + `    cy.get('*[class^="DropdownButtonstyled__"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('[data-id="none_btn"]').first().click();\n` + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).eq(2).click();\n' + `    cy.get('[data-id="apply_btn"]').first().click();\n` + "    cy.get('@initialCount').then(initialCount => {\n" + "      cy.get('@totalCount').then(totalCount => {\n" + "        cy.contains('No results found').should('not.exist');\n" + `        cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '          timeout: 45000\n' + '        }).within($footer => {\n' + `          cy.get('*[class^="Text"]', {\n` + '            timeout: 9000\n' + "          }).invoke('text').then(txt => {\n" + '
   let sentence = txt.split(" ");\n' + '            let filteredCount = sentence[0];\n' + '            let newTotalCount = sentence[2];\n' + '            cy.expect(filteredCount).to.not.equal(initialCount);\n' + '
          cy.expect(filteredCount).to.not.equal("0");\n' + '            cy.expect(newTotalCount).to.equal(totalCount);\n' + '          });\n' + '        });\n' + '      });\n' + '    });\n' + '  }', type: 'test', duration: 45394, wallClockStartedAt: '2024-02-29T15:17:16.502Z', timings: { lifecycle: 139, 'before each': [Array], test: [Object] }, file: null, currentRetry: 3, retries: 3, _slow: 10000 } ] +44s

cypress:server:project onMocha test end +6ms
cypress:server:reporter got mocha event 'test end' with args: [ { _testConfig: { testConfigList: [], unverifiedTestConfig: {}, applied: 'complete' }, id: 'r3', order: 1, title: 'Check if filter works', err: { message: '`cy.screenshot()` timed out waiting `30000ms` to complete.', name: 'CypressError', stack: 'CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:133657:73\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:4186:41\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at Promise._settlePromiseFromHandler (https://abcd.com/__cypress/runner/cypress_runner.js:1519:31)\n' + '    at Promise._settlePromise (https://abcd.com/__cypress/runner/cypress_runner.js:1576:18)\n' + '    at Promise._settlePromise0 (https://abcd.com/__cypress/runner/cypress_runner.js:1621:10)\n' + '    at Promise._settlePromises (https://abcd.com/__cypress/runner/cypress_runner.js:1697:18)\n' + '    at _drainQueueStep (https://abcd.com/__cypress/runner/cypress_runner.js:2407:12)\n' + '
at _drainQueue (https://abcd.com/__cypress/runner/cypress_runner.js:2400:9)\n' + '    at Async._drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2416:5)\n' + '    at Async.drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2286:14)', docsUrl: 'https://on.cypress.io/screenshot' }, state: 'failed', pending: false, body: 'function () {\n' + "    cy.visit('/agreements-ui/agreements');\n" + `    cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '      timeout: 45000\n' + '    }).within($footer => {\n' + `      cy.get('*[class^="Text"]', {\n` + '        timeout: 5000\n' + "      }).invoke('text').then(txt => {\n" + '        let sentence = txt.split(" ");\n' + '        let initialCount = sentence[0];\n' + '        let totalCount = sentence[2];\n' + "        cy.wrap(initialCount).as('initialCount');\n" + "        cy.wrap(totalCount).as('totalCount');\n" + '      });\n' + '    });\n' + '    cy.wait(3000);\n' + `    cy.get('*[class^="DropdownButtonstyled__"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('[data-id="none_btn"]').first().click();\n` + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).eq(2).click();\n' + `    cy.get('[data-id="apply_btn"]').first().click();\n` + "    cy.get('@initialCount').then(initialCount => {\n" + "      cy.get('@totalCount').then(totalCount => {\n" + "        cy.contains('No results found').should('not.exist');\n" + `        cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '          timeout: 45000\n' + '        }).within($footer => {\n' + `          cy.get('*[class^="Text"]', {\n` + '            timeout: 9000\n' + "          }).invoke('text').then(txt => {\n" + '
       let sentence = txt.split(" ");\n' + '            let filteredCount = sentence[0];\n' + '            let newTotalCount = sentence[2];\n' + '            cy.expect(filteredCount).to.not.equal(initialCount);\n' + '            cy.expect(filteredCount).to.not.equal("0");\n' + '            cy.expect(newTotalCount).to.equal(totalCount);\n' + '          });\n' + '        });\n' + '      });\n' + '    });\n' + '  }', type: 'test', duration: 45394, wallClockStartedAt: '2024-02-29T15:17:16.502Z', timings: { lifecycle: 139, 'before each': [Array], test: [Object] }, file: null, final: true, currentRetry: 3, retries: 3, _slow: 10000 } ] +5ms
cypress:server:project onMocha suite end +15ms
cypress:server:reporter got mocha event 'suite end' with args: [ { id: 'r2', title: 'Test Agreements UI', root: false, pending: false, type: 'suite', file: null, invocationDetails: { function: 'eval', fileUrl: 'https://abcd.com/__cypress/tests?p=cypress\\e2e\\read_tests\\abcd_agreements_tests.js', originalFile: 'webpack:///../e2e/read_tests/abcd_agreements_tests.js', relativeFile: '../e2e/read_tests/abcd_agreements_tests.js', absoluteFile: 'e2e/read_tests/abcd_agreements_tests.js', line: 9, column: 0, whitespace: '    ', stack: 'Error\n' + '    at eval (https://abcd.com/__cypress/tests?p=cypress\\e2e\\read_tests\\abcd_agreements_tests.js:16:1)\n' + '    at eval (https://abcd.com/__cypress/tests?p=cypress\\e2e\\read_tests\\abcd_agreements_tests.js:188:12)\n' + '    at eval (<anonymous>)' }, retries: -1, _slow: 10000 } ] +15ms
cypress:server:project onMocha test:after:run +1ms
cypress:server:reporter got mocha event 'test:after:run' with args: [ { _testConfig: { testConfigList: [], unverifiedTestConfig: {}, applied: 'complete' }, id: 'r3', order: 1, title: 'Check if filter works', err: { message: '`cy.screenshot()` timed out waiting `30000ms` to complete.', name: 'CypressError', stack: 'CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:133657:73\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:4186:41\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at Promise._settlePromiseFromHandler (https://abcd.com/__cypress/runner/cypress_runner.js:1519:31)\n' + '    at Promise._settlePromise (https://abcd.com/__cypress/runner/cypress_runner.js:1576:18)\n' + '    at Promise._settlePromise0 (https://abcd.com/__cypress/runner/cypress_runner.js:1621:10)\n' + '    at Promise._settlePromises (https://abcd.com/__cypress/runner/cypress_runner.js:1697:18)\n' + '    at _drainQueueStep (https://abcd.com/__cypress/runner/cypress_runner.js:2407:12)\n' + '    at _drainQueue (https://abcd.com/__cypress/runner/cypress_runner.js:2400:9)\n' + '    at Async._drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2416:5)\n' + '    at Async.drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2286:14)', docsUrl: 'https://on.cypress.io/screenshot' }, state: 'failed', pending: false, body: 'function () {\n' + "    cy.visit('/agreements-ui/agreements');\n" + `    cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '      timeout: 45000\n' + '    }).within($footer => {\n' + `      cy.get('*[class^="Text"]', {\n` + '
timeout: 5000\n' + "      }).invoke('text').then(txt => {\n" + '        let sentence = txt.split(" ");\n' + '        let initialCount = sentence[0];\n' + '        let totalCount = sentence[2];\n' + "        cy.wrap(initialCount).as('initialCount');\n" + "        cy.wrap(totalCount).as('totalCount');\n" + '      });\n' + '    });\n' + '    cy.wait(3000);\n' + `    cy.get('*[class^="DropdownButtonstyled__"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('[data-id="none_btn"]').first().click();\n` + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).eq(2).click();\n' + `    cy.get('[data-id="apply_btn"]').first().click();\n` + "    cy.get('@initialCount').then(initialCount => {\n" + "      cy.get('@totalCount').then(totalCount => {\n" + "        cy.contains('No results found').should('not.exist');\n" + `        cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '          timeout: 45000\n' + '        }).within($footer => {\n' + `          cy.get('*[class^="Text"]', {\n` + '            timeout: 9000\n' + "          }).invoke('text').then(txt => {\n" + '            let sentence = txt.split(" ");\n' + '            let filteredCount = sentence[0];\n' + '            let newTotalCount = sentence[2];\n' + '            cy.expect(filteredCount).to.not.equal(initialCount);\n' + '            cy.expect(filteredCount).to.not.equal("0");\n' + '            cy.expect(newTotalCount).to.equal(totalCount);\n' + '          });\n' + '        });\n' + '      });\n' + '    });\n' + '  }', type: 'test', duration: 45394, wallClockStartedAt: '2024-02-29T15:17:16.502Z', wallClockDuration: 45403, timings: { lifecycle: 139, 'before each': [Array], test: [Object] }, file: null, final: true, currentRetry: 3, retries: 3, _slow: 10000 } ] +1ms
cypress:server:project onMocha suite end +0ms
cypress:server:reporter got mocha event 'suite end' with args: [ { id: 'r1', title: '', root: true, pending: false, type: 'suite', file: 'cypress\\e2e\\read_tests\\abcd_agreements_tests.js', retries: -1, _slow: 10000 } ] +0ms
cypress:server:project onMocha end +0ms
cypress:server:reporter got mocha event 'end' with args: [ { end: '2024-02-29T15:18:01.914Z' } ] +0ms

0 passing (4m)
1 failing

1) Test Agreements UI
     Check if filter works:
   CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.
    at https://abcd.com/__cypress/runner/cypress_runner.js:133657:73
    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)
    at https://abcd.com/__cypress/runner/cypress_runner.js:4186:41
    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (https://abcd.com/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (https://abcd.com/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (https://abcd.com/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (https://abcd.com/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (https://abcd.com/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (https://abcd.com/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2286:14)

(Results)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests:        1                                                                                │
│ Passing:      0                                                                                │
│ Failing:      1                                                                                │
│ Pending:      0                                                                                │
│ Skipped:      0                                                                                │
│ Screenshots:  0                                                                                │
│ Video:        false                                                                            │
│ Duration:     3 minutes, 41 seconds                                                            │
│ Spec Ran:     abcd_agreements_tests.js                                                        │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

====================================================================================================

(Run Finished)

     Spec                                              Tests  Passing  Failing  Pending  Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ×  abcd_agreements_tests.js                03:41        1        -        1        -        - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
  ×  1 of 1 failed (100%)                     03:41        1        -        1        -        -

cypress:server:run received project end { stats: { suites: 1, tests: 1, passes: 0, pending: 0, skipped: 0, failures: 1, wallClockStartedAt: 2024-02-29T15:14:20.258Z, wallClockEndedAt: 2024-02-29T15:18:01.914Z, wallClockDuration: 221656 }, reporter: 'spec', reporterStats: { suites: 1, tests: 1, passes: 0, pending: 0, failures: 1, start: 2024-02-29T15:14:20.248Z, end: 2024-02-29T15:18:01.921Z, duration: 221673 }, hooks: [ { hookId: 'h1', hookName: 'before all', title: [Array], body: '() => {\n    cy.clearCookies();\n  }' }, { hookId: 'h2', hookName: 'before each', title: [Array], body: 'function () {\n' + "    if (Cypress.env('AZURE_LOGIN_ENABLED') == true) {\n" + '      cy.loginToAzure();\n' + '    } else {\n' + '      cy.loginToOkta();\n' + '    }\n' + '  }' } ], tests: [ { testId: 'r3', title: [Array], state: 'failed', body: 'function () {\n' + "    cy.visit('/agreements-ui/agreements');\n" + `    cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '      timeout: 45000\n' + '    }).within($footer => {\n' + `      cy.get('*[class^="Text"]', {\n` + '        timeout: 5000\n' + "      }).invoke('text').then(txt => {\n" + '        let sentence = txt.split(" ");\n' + '        let initialCount = sentence[0];\n' + '        let totalCount = sentence[2];\n' + "        cy.wrap(initialCount).as('initialCount');\n" + "        cy.wrap(totalCount).as('totalCount');\n" + '      });\n' + '    });\n' + '    cy.wait(3000);\n' + `    cy.get('*[class^="DropdownButtonstyled__"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('[data-id="none_btn"]').first().click();\n` + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).eq(2).click();\n' + `    cy.get('[data-id="apply_btn"]').first().click();\n` + "
cy.get('@initialCount').then(initialCount => {\n" + "      cy.get('@totalCount').then(totalCount => {\n" + "        cy.contains('No results found').should('not.exist');\n" + `        cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '          timeout: 45000\n' + '        }).within($footer => {\n' + `          cy.get('*[class^="Text"]', {\n` + '            timeout: 9000\n' + "          }).invoke('text').then(txt => {\n" + '            let sentence = txt.split(" ");\n' + '            let filteredCount = sentence[0];\n' + '            let newTotalCount = sentence[2];\n' + '            cy.expect(filteredCount).to.not.equal(initialCount);\n' + '            cy.expect(filteredCount).to.not.equal("0");\n' + '            cy.expect(newTotalCount).to.equal(totalCount);\n' + '          });\n' + '        });\n' + '      });\n' + '    });\n' + '  }', displayError: 'CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:133657:73\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:4186:41\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at Promise._settlePromiseFromHandler (https://abcd.com/__cypress/runner/cypress_runner.js:1519:31)\n' + '    at Promise._settlePromise (https://abcd.com/__cypress/runner/cypress_runner.js:1576:18)\n' + '    at Promise._settlePromise0 (https://abcd.com/__cypress/runner/cypress_runner.js:1621:10)\n' + '    at Promise._settlePromises (https://abcd.com/__cypress/runner/cypress_runner.js:1697:18)\n' + '    at _drainQueueStep (https://abcd.com/__cypress/runner/cypress_runner.js:2407:12)\n' + '    at _drainQueue (https://abcd.com/__cypress/runner/cypress_runner.js:2400:9)\n' + '    at Async._drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2416:5)\n' + '    at Async.drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2286:14)', attempts: [Array] } ] } +4m
cypress:server:run received videoController { videoController: undefined } +1ms
cypress:server:run execute after:spec +0ms
cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:spec', isRegistered: false } +4m
cypress:server:run No video found after spec ran - skipping compression. Video path: undefined +0ms
cypress:server:run attempting to close the browser tab +5ms
cypress:server:browsers:browser-cri-client Closing current target 2215B89248ADB6E58204358C31A8BE26 +4m
cypress:server:run resetting server state +6ms
cypress:proxy:http:util:buffers resetting buffers +43s
cypress:network:cors Parsed URL { port: '80', protocol: null, subdomain: null, domain: '', tld: '' } +3s
cypress:network:cors Parsed URL { port: '64631', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } +0ms
cypress:server:remote-states setting remote state { auth: undefined, origin: 'http://localhost:64631', strategy: 'file', fileServer: 'http://localhost:64632', domainName: 'localhost', props: null } for http://localhost:64631 +3s
cypress:network:cors Parsed URL { port: '64631', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } +0ms
cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:64631', strategy: 'file', fileServer: 'http://localhost:64632', domainName: 'localhost', props: null } for: http://localhost:64631 +0ms
cypress:server:run spec results { stats: { suites: 1, tests: 1, passes: 0, pending: 0, skipped: 0, failures: 1, wallClockStartedAt: 2024-02-29T15:14:20.258Z, wallClockEndedAt: 2024-02-29T15:18:01.914Z, wallClockDuration: 221656 }, reporter: 'spec', reporterStats: { suites: 1, tests: 1, passes: 0, pending: 0, failures: 1, start: 2024-02-29T15:14:20.248Z, end: 2024-02-29T15:18:01.921Z, duration: 221673 }, hooks: [ { hookId: 'h1', hookName: 'before all', title: [Array], body: '() => {\n    cy.clearCookies();\n  }' }, { hookId: 'h2', hookName: 'before each', title: [Array], body: 'function () {\n' + "    if (Cypress.env('AZURE_LOGIN_ENABLED') == true) {\n" + '      cy.loginToAzure();\n' + '    } else {\n' + '      cy.loginToOkta();\n' + '    }\n' + '  }' } ], tests: [ { testId: 'r3', title: [Array], state: 'failed', body: 'function () {\n' + "    cy.visit('/agreements-ui/agreements');\n" + `    cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '      timeout: 45000\n' + '    }).within($footer => {\n' + `      cy.get('*[class^="Text"]', {\n` + '        timeout: 5000\n' + "      }).invoke('text').then(txt => {\n" + '        let sentence = txt.split(" ");\n' + '        let initialCount = sentence[0];\n' + '        let totalCount = sentence[2];\n' + "        cy.wrap(initialCount).as('initialCount');\n" + "        cy.wrap(totalCount).as('totalCount');\n" + '      });\n' + '    });\n' + '    cy.wait(3000);\n' + `    cy.get('*[class^="DropdownButtonstyled__"]', {\n` + '      timeout: 9000\n' + '    }).first().click();\n' + `    cy.get('[data-id="none_btn"]').first().click();\n` + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '
}).first().click();\n' + `    cy.get('*[class^="Multicheckstyled__EmptyCheckbox"]', {\n` + '      timeout: 9000\n' + '    }).eq(2).click();\n' + `    cy.get('[data-id="apply_btn"]').first().click();\n` + "    cy.get('@initialCount').then(initialCount => {\n" + "      cy.get('@totalCount').then(totalCount => {\n" + "        cy.contains('No results found').should('not.exist');\n" + `        cy.get('*[class^="ReactVirtualized__Grid table__footer-fixed-grid"]', {\n` + '          timeout: 45000\n' + '        }).within($footer => {\n' + `          cy.get('*[class^="Text"]', {\n` + '            timeout: 9000\n' + "          }).invoke('text').then(txt => {\n" + '            let sentence = txt.split(" ");\n' + '            let filteredCount = sentence[0];\n' + '            let newTotalCount = sentence[2];\n' + '            cy.expect(filteredCount).to.not.equal(initialCount);\n' + '            cy.expect(filteredCount).to.not.equal("0");\n' + '            cy.expect(newTotalCount).to.equal(totalCount);\n' + '          });\n' + '        });\n' + '      });\n' + '    });\n' + '  }', displayError: 'CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete.\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:133657:73\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at https://abcd.com/__cypress/runner/cypress_runner.js:4186:41\n' + '    at tryCatcher (https://abcd.com/__cypress/runner/cypress_runner.js:1807:23)\n' + '    at Promise._settlePromiseFromHandler (https://abcd.com/__cypress/runner/cypress_runner.js:1519:31)\n' + '    at Promise._settlePromise (https://abcd.com/__cypress/runner/cypress_runner.js:1576:18)\n' + '    at Promise._settlePromise0 (https://abcd.com/__cypress/runner/cypress_runner.js:1621:10)\n' + '    at Promise._settlePromises (https://abcd.com/__cypress/runner/cypress_runner.js:1697:18)\n' + '    at _drainQueueStep (https://abcd.com/__cypress/runner/cypress_runner.js:2407:12)\n' + '    at _drainQueue (https://abcd.com/__cypress/runner/cypress_runner.js:2400:9)\n' + '    at Async._drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2416:5)\n' + '    at Async.drainQueues (https://abcd.com/__cypress/runner/cypress_runner.js:2286:14)', attempts: [Array] } ], error: null, video: null, screenshots: [], spec: { fileExtension: '.js', baseName: 'abcd_agreements_tests.js', fileName: 'abcd_agreements_tests', specFileExtension: '.js', relativeToCommonRoot: 'abcd_agreements_tests.js', specType: 'integration', name: 'cypress/e2e/read_tests/abcd_agreements_tests.js', relative: 'cypress\\e2e\\read_tests\\abcd_agreements_tests.js', absolute: 'C:/Users/sdevaprasad/dev/projects/abcd-one-integration-tests/cypress/e2e/read_tests/abcd_agreements_tests.js' }, shouldUploadVideo: true } +1ms
cypress:server:run final results of all runs: { status: 'finished', startedTestsAt: 2024-02-29T15:14:20.258Z, endedTestsAt: 2024-02-29T15:18:01.914Z, totalDuration: 221656, totalSuites: 1, totalTests: 1, totalPassed: 0, totalPending: 0, totalFailed: 1, totalSkipped: 0, runs: [ { stats: [Object], reporter: 'spec', reporterStats: [Object], hooks: [Array], tests: [Array], error: null, video: null, screenshots: [], spec: [Object], shouldUploadVideo: true } ], browserPath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe', browserName: 'chrome', browserVersion: '121.0.6167.185', osName: 'win32', osVersion: '10.0.22631', cypressVersion: '12.17.4', runUrl: undefined, config: { viewportWidth: 1920, viewportHeight: 1080, pageLoadTimeout: 10000, projectId: 'abcd-one-integration-tests', retries: { runMode: 3, openMode: 3 }, retryOnNetworkFailure: 'true', retryOnStatusCodeFailure: 'true', env: { ENV_URL: 'https://abcd.com', USERNAME: 'srv.cypressdev@abcd.com', SESSION_TOKEN: false, REDIRECT_URI: 'https://abcd.com/authorization-code/callback', OKTA_DOMAIN: 'https://abcdpartners.okta.com', OKTA_AUTHN_ENDPOINT: '/api/v1/authn', OKTA_AUTHORIZE_ENDPOINT: '/oauth2/v1/authorize', AZURE_LOGIN_ENABLED: true, AZURE_USERNAME: 'srv.cypressdev@abcd.com', MICROSOFT_LOGIN_URL: 'https://login.microsoftonline.com/', AGREEMENTS_API_KEY: 'da2-qeugj35435bpxjipenfqxxiz4u', API_AGREEMENTS_URL: '/api/agreements/graphql', API_REPORT_LAYOUT_KEY: 'report-center__live__layout-type', API_REPORT_FAVOURITES_KEY: 'report-center__live__favourites-only', API_BDIR_KEY: 'views_bdir__bdir-filters', API_OPERATIONS_KEY: 'views_deals__deals-filters', API_HOME_URL: '/api/home/graphql', API_REPORT_CENTER_URL: '/api/report-center/graphql', API_VIEWS_URL: '/api/views/graphql', API_DOCUMENTS_URL: '/api/documents/graphql', API_TOKEN: '5f835108d5724d9ea2e5876ac4fc4aaf', }, setupNodeEvents: '[Function setupNodeEvents]', specPattern: 'cypress/e2e/read_tests/abcd_agreements_tests.js', projectRoot: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests', projectName: 'abcd-one-integration-tests', repoRoot: 'C:/Users/sdevaprasad/dev/projects/abcd-one-integration-tests', rawJson: { viewportWidth: 1920, viewportHeight: 1080, pageLoadTimeout: 10000, projectId: 'abcd-one-integration-tests', retries: [Object], retryOnNetworkFailure: 'true', retryOnStatusCodeFailure: 'true', e2e: [Object], env: [Object], setupNodeEvents: '[Function setupNodeEvents]', specPattern: 'cypress/e2e/read_tests/abcd_agreements_tests.js', envFile: {}, projectRoot: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests', projectName: 'abcd-one-integration-tests', repoRoot: 'C:/Users/sdevaprasad/dev/projects/abcd-one-integration-tests' }, configFile: 'config.dev.js', morgan: false, isTextTerminal: true, socketId: 'qrco1bdjgi', report: true, video: false, animationDistanceThreshold: 5, arch: 'x64', baseUrl: null, blockHosts: null, chromeWebSecurity: true, clientCertificates: [], defaultCommandTimeout: 4000, downloadsFolder: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests\\cypress\\downloads', execTimeout: 60000, experimentalCspAllowList: false, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalRunAllSpecs: false, experimentalMemoryManagement: false, experimentalModifyObstructiveThirdPartyCode: false, experimentalSkipDomainInjection: null, experimentalOriginDependencies: false, experimentalSourceRewriting: false, experimentalSingleTabRunMode: false, experimentalStudio: false, experimentalWebKitSupport: false, fileServerFolder: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests', fixturesFolder: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests\\cypress\\fixtures', excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, nodeVersion: undefined, numTestsKeptInMemory: 0, platform: 'win32', port: 64631, redirectionLimit: 20, reporter: 'spec', reporterOptions: null, requestTimeout: 5000, resolvedNodePath: 'C:\\Program Files\\nodejs\\node.exe', resolvedNodeVersion: '18.17.1', responseTimeout: 30000, screenshotOnRunFailure: true, screenshotsFolder: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests\\cypress\\screenshots', slowTestThreshold: 10000, scrollBehavior: 'top', supportFile: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests\\cypress\\support\\e2e.js', supportFolder: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests\\cypress\\support', taskTimeout: 60000, testIsolation: true, trashAssetsBeforeRuns: true, userAgent: null, videoCompression: 32, videosFolder: 'C:\\Users\\sdevaprasad\\dev\\projects\\abcd-one-integration-tests\\cypress\\videos', videoUploadOnPasses: true, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: [], autoOpen: false, browsers: [ [Object], [Object], [Object] ], clientRoute: '/__/', cypressBinaryRoot: 'C:\\Users\\sdevaprasad\\AppData\\Local\\Cypress\\Cache\\12.17.4\\Cypress\\resources\\app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '12.17.4', cypressEnv: 'production', resolved: { animationDistanceThreshold: [Object], arch: [Object], baseUrl: [Object], blockHosts: [Object], chromeWebSecurity: [Object], clientCertificates: [Object], defaultCommandTimeout: [Object], downloadsFolder: [Object], env: [Object], execTimeout: [Object], experimentalCspAllowList: [Object], experimentalFetchPolyfill: [Object], experimentalInteractiveRunEvents: [Object], experimentalRunAllSpecs: [Object], experimentalMemoryManagement: [Object], experimentalModifyObstructiveThirdPartyCode: [Object], experimentalSkipDomainInjection: [Object], experimentalOriginDependencies: [Object], experimentalSourceRewriting: [Object], experimentalSingleTabRunMode: [Object], experimentalStudio: [Object], experimentalWebKitSupport: [Object], fileServerFolder: [Object], fixturesFolder: [Object], excludeSpecPattern: [Object], includeShadowDom: [Object], keystrokeDelay: [Object], modifyObstructiveCode: [Object], nodeVersion: [Object], numTestsKeptInMemory: [Object], platform: [Object], pageLoadTimeout: [Object], port: [Object], projectId: [Object], redirectionLimit: [Object], reporter: [Object], reporterOptions: [Object], requestTimeout: [Object], resolvedNodePath: [Object], resolvedNodeVersion: [Object], responseTimeout: [Object], retries: [Object], screenshotOnRunFailure: [Object], screenshotsFolder: [Object], slowTestThreshold: [Object], scrollBehavior: [Object], supportFile: [Object], supportFolder: [Object], taskTimeout: [Object], testIsolation: [Object], trashAssetsBeforeRuns: [Object], userAgent: [Object], video: [Object], videoCompression: [Object], videosFolder: [Object], videoUploadOnPasses: [Object], viewportHeight: [Object], viewportWidth: [Object], waitForAnimations: [Object], watchForFileChanges: [Object], specPattern: [Object], browsers: [Object], hosts: [Object], isInteractive: [Object] }, testingType: 'e2e', remote: { auth: undefined, origin: 'http://localhost:64631', strategy: 'file', fileServer: 'http://localhost:64632', domainName: 'localhost', props: null }, browser: null, specs: [], proxyUrl: 'http://localhost:64631', browserUrl: 'http://localhost:64631/__/', reporterUrl: 'http://localhost:64631/__cypress/reporter', proxyServer: 'http://localhost:64631', state: {} } } +1ms
cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:run', isRegistered: false } +21ms
cypress:server:cypress about to exit with code 1 +4m
cypress:server:browsers killing browser process +4m
cypress:server:browsers:chrome closing remote interface client +4m
cypress:server:browsers:chrome closing chrome +0ms
cypress:proxy:http:util:prerequests metrics: { browserPreRequestsReceived: 201, proxyRequestsReceived: 171, immediatelyMatchedRequests: 64, unmatchedRequests: 51, unmatchedPreRequests: 80 } +0ms
cypress:server:socket-base socket-disconnecting transport close +30s
cypress:server:socket-base socket-disconnect transport close +0ms
cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 64763 } +4s
cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 64766 } +0ms
cypress:cli child event fired { event: 'exit', code: 1, signal: null } +4m
cypress:cli child event fired { event: 'close', code: 1, signal: null } +2ms

Other

Running cypress desktop app (cypress open –config-file cypress/config/config.dev.js) and selecting chrome 121 works. All the tests pass for all tests.

jennifer-shehane commented 8 months ago

@samdevaprasadvarde We've been tracking this issue here: https://github.com/cypress-io/cypress/issues/5016

We recently got a way to reproduce this, so are actively working on a fix for one root cause we've identified. What we've found in that case is that there is something in the test that causes the tab to be unfocused (clicking to open a new tab or clicking something that causes an alert to pop up). When the tab is no longer focused, the screenshot will timeout.

The fact that something between Chrome 120 and 121 could have affected this is not completely suprising, but I haven't seen someone note this before.

Does your test at some point call focus away from the tab in some way?

samdevaprasadvarde commented 8 months ago

Thanks Jennifer for the quick response! When you say

@samdevaprasadvarde We've been tracking this issue here: #5016

We recently got a way to reproduce this, so are actively working on a fix for one root cause we've identified. What we've found in that case is that there is something in the test that causes the tab to be unfocused (clicking to open a new tab or clicking something that causes an alert to pop up). When the tab is no longer focused, the screenshot will timeout.

The fact that something between Chrome 120 and 121 could have affected this is not completely suprising, but I haven't seen someone note this before.

Does your test at some point call focus away from the tab in some way?

Thanks Jennifer for the quick response! There is a shift in focus with this test as we open up different dialog boxes and filter dropdowns, but don't switch tabs within our page. Does that answer your question?

jennifer-shehane commented 8 months ago

Maybe it's related. We'll be getting a fix out for the other issue in our next release so will see if that solves your situation also.

jennifer-shehane commented 3 months ago

Can you confirm if your issue is resolved in the latest cypress version

samdevaprasadvarde commented 3 months ago

Confirmed working on latest cypress version. Thank you!