cypress-io / cypress

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

cy.wait('@alias') returns undefined in response in the afterEach block when a test fails. #26983

Open BohdanQatestlab opened 1 year ago

BohdanQatestlab commented 1 year ago

Current behavior

Description:

In my test suite, I use the cy.wait('@alias') command inside the afterEach block to ensure that all API requests are completed before each test ends. This works correctly if the test case passes, but when a test fails, cy.wait('@alias') returns undefined in response instantly causing a "Cannot destructure property 'response' of 'undefined'" as it is undefined. error.

Steps to reproduce:

Set up an API intercept and alias it. Use cy.wait('@alias') in the afterEach block. Run a test that fails intentionally. Notice that the cy.wait('@alias') in the afterEach block returns undefined.

Additional Info: I have confirmed that the response is not empty via console logs and checking the network tab in the browser dev tools. Also, the issue seems to be mitigated by adding a manual delay before the cy.wait('@alias') command, which suggests that it could be related to some internal promise handling in Cypress.

Desired behavior

Expected Results: The cy.wait('@getPost') command should return an object with request and response properties, even when a test fails.

Actual Results: When a test fails, cy.wait('@alias') returns undefined which leads to a destructuring error.

Test code to reproduce

//in this example the wait should wait 5000 second and fail 
//but it fail instantly with response = undefined 

describe('Example test suite', () => {
  before(() => {
    cy.intercept('GET', 'www.google.com', (req) => {
      req.alias = 'getPost'
    })
  })

  it('A test that will fail', () => {
    cy.get('nonexistent', { timeout: 1 }).should('be.visible')
  })

  afterEach(() => {

    cy.wait('@getPost').then(({ response: { body, statusCode } }) => {
      console.log(body, statusCode)
    })
  })
})

Cypress Version

12.9

Node version

18.16

Operating System

Ubuntu 22.04.2 LTS

Debug Logs

cypress:server:saved_state making saved state from /home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/packages/server +0ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:server:saved_state state path for global mode +1ms
  cypress:server:appdata path: /home/bohdan/.config/Cypress/cy/production/projects/__global__/state.json +6ms
  cypress:server:saved_state full state path /home/bohdan/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:server:saved_state state path for global mode +1ms
  cypress:server:appdata path: /home/bohdan/.config/Cypress/cy/production/projects/__global__/state.json +1ms
  cypress:server:saved_state full state path /home/bohdan/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:webpack user options: { typescript: '/home/bohdan/Downloads/TvCoins/frontend/common/temp/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/typescript.js', webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [Array] }, resolve: { extensions: [Array], alias: [Object], plugins: [Array] } }, __typescriptSupportAdded: true } +0ms
  cypress:webpack get /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js +0ms
  cypress:webpack load default options +0ms
  cypress:webpack setting devtool to inline-source-map +1ms
  cypress:webpack typescript found, overriding typescript.createProgram() +0ms
  cypress:webpack Limiting number of chunks to 1 +2ms
  cypress:webpack webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [ [Object], [Object], [Object], [Object] ] }, resolve: { extensions: [ '.js',     '.json', '.jsx',    '.mjs', '.coffee', '.ts', '.tsx' ], alias: { child_process: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', cluster: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', console: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dgram: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dns: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', fs: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', http2: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', inspector: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', module: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', net: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', perf_hooks: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', readline: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', repl: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', tls: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js' }, plugins: [ [TsconfigPathsPlugin] ] }, entry: [ '/home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js' ], output: { publicPath: '', path: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout', filename: 'test.cy.js' }, devtool: 'inline-source-map', plugins: [ LimitChunkCountPlugin { options: [Object] } ] } +3ms
  cypress:webpack watchOptions: {} +1ms
  cypress:webpack typescript: /home/bohdan/Downloads/TvCoins/frontend/common/temp/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/typescript.js +1ms
  cypress:webpack input: /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js +0ms
  cypress:webpack output: /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout/test.cy.js +0ms
  cypress:server:controllers:spec request for { spec: 'cypress/support/e2e.js' } +0ms
  cypress:server:preprocessor getting file cypress/support/e2e.js +73ms
  cypress:server:preprocessor getFile /home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js +0ms
  cypress:server:appdata path: /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support/e2e.js +61ms
  cypress:lifecycle:EventRegistrar execute plugin event 'file:preprocessor' Node 'v16.16.0' with args: EventEmitter { _events: [Object: null prototype] { rerun: [Function (anonymous)] }, _eventsCount: 1, _maxListeners: undefined, filePath: '/home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js', shouldWatch: true, outputPath: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support/e2e.js', [Symbol(kCapture)]: false } undefined undefined +72ms
  cypress:lifecycle:ProjectConfigManager call event file:preprocessor for invocation id inv3 +71ms
  cypress:server:controllers:spec request for { spec: 'cypress/e2e/App_studio/layout/test.cy.js' } +3ms
  cypress:server:preprocessor getting file cypress/e2e/App_studio/layout/test.cy.js +3ms
  cypress:server:preprocessor getFile /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js +0ms
  cypress:lifecycle:EventRegistrar execute plugin event 'file:preprocessor' Node 'v16.16.0' with args: EventEmitter { _events: [Object: null prototype] { rerun: [Function (anonymous)] }, _eventsCount: 1, _maxListeners: undefined, filePath: '/home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js', shouldWatch: true, outputPath: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout/test.cy.js', [Symbol(kCapture)]: false } undefined undefined +3ms
  cypress:lifecycle:ProjectConfigManager call event file:preprocessor for invocation id inv4 +3ms
  cypress:webpack compile /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js +106ms
  cypress:lifecycle:child:RunPlugins:21342 execute plugin event: file:preprocessor ({ invocationId: 'inv3', eventId: 5 }) +151ms
  cypress:webpack user options: { typescript: '/home/bohdan/Downloads/TvCoins/frontend/common/temp/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/typescript.js', webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [Array] }, resolve: { extensions: [Array], alias: [Object], plugins: [Array] }, entry: [ '/home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js' ], output: { publicPath: '', path: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout', filename: 'test.cy.js' }, devtool: 'inline-source-map', plugins: [ [LimitChunkCountPlugin] ] }, __typescriptSupportAdded: true } +21ms
  cypress:webpack get /home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js +1ms
  cypress:webpack load default options +1ms
  cypress:webpack setting devtool to inline-source-map +1ms
  cypress:webpack typescript.createProgram() already overridden +136ms
  cypress:webpack Limiting number of chunks to 1 +0ms
  cypress:webpack webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [ [Object], [Object], [Object], [Object] ] }, resolve: { extensions: [ '.js',     '.json', '.jsx',    '.mjs', '.coffee', '.ts', '.tsx' ], alias: { child_process: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', cluster: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', console: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dgram: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dns: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', fs: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', http2: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', inspector: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', module: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', net: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', perf_hooks: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', readline: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', repl: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', tls: '/home/bohdan/.cache/Cypress/12.9.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js' }, plugins: [ [TsconfigPathsPlugin] ] }, entry: [ '/home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js' ], output: { publicPath: '', path: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support', filename: 'e2e.js' }, devtool: 'inline-source-map', plugins: [ LimitChunkCountPlugin { options: [Object] }, LimitChunkCountPlugin { options: [Object] } ] } +0ms
  cypress:webpack watchOptions: {} +1ms
  cypress:webpack typescript: /home/bohdan/Downloads/TvCoins/frontend/common/temp/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/typescript.js +0ms
  cypress:webpack input: /home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js +0ms
  cypress:webpack output: /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support/e2e.js +0ms
  cypress:webpack compile /home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js +7ms
  cypress:lifecycle:child:RunPlugins:21342 execute plugin event: file:preprocessor ({ invocationId: 'inv4', eventId: 5 }) +17ms
  cypress:webpack user options: { typescript: '/home/bohdan/Downloads/TvCoins/frontend/common/temp/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/typescript.js', webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [Array] }, resolve: { extensions: [Array], alias: [Object], plugins: [Array] }, entry: [ '/home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js' ], output: { publicPath: '', path: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support', filename: 'e2e.js' }, devtool: 'inline-source-map', plugins: [ [LimitChunkCountPlugin], [LimitChunkCountPlugin] ] }, __typescriptSupportAdded: true } +5ms
  cypress:webpack get /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js +1ms
  cypress:webpack already have bundle for /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js +0ms
  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    │     'cypress'     │      1       │           '20871'            │    3.78    │      1.89      │  387.92  │    349.72    │   387.92    │
  cypress:server:util:process_profiler │    1    │ 'electron-shared' │      4       │ '20873, 21030, 20874, 21438' │     0      │       0        │  355.57  │    226.17    │   355.57    │
  cypress:server:util:process_profiler │    2    │    'Electron'     │      1       │           '21904'            │    0.01    │      0.01      │  290.53  │    290.53    │   290.53    │
  cypress:server:util:process_profiler │    3    │     'plugin'      │      1       │           '21342'            │     0      │       0        │  130.22  │    130.22    │   130.22    │
  cypress:server:util:process_profiler │    4    │    'launchpad'    │      1       │           '21530'            │     0      │       0        │  127.79  │    127.79    │   127.79    │
  cypress:server:util:process_profiler │    5    │      'other'      │      2       │        '22117, 22118'        │     0      │       0        │   2.5    │     2.5      │     2.5     │
  cypress:server:util:process_profiler │    6    │      'TOTAL'      │      10      │             '-'              │    3.81    │      1.9       │ 1294.54  │    852.66    │   1294.54   │
  cypress:server:util:process_profiler └─────────┴───────────────────┴──────────────┴──────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +10s
  cypress:webpack finished bundling /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout/test.cy.js +688ms
Hash: c40ffd2802d2ab4c27c3
Version: webpack 4.46.0
Time: 725ms
Built at: 06/09/2023 12:00:52 PM
     Asset      Size  Chunks             Chunk Names
test.cy.js  11.1 KiB    main  [emitted]  main
Entrypoint main = test.cy.js
[0] multi ./cypress/e2e/App_studio/layout/test.cy.js 28 bytes {main} [built]
[./cypress/e2e/App_studio/layout/test.cy.js] 477 bytes {main} [built]
  cypress:webpack - compile finished for /home/bohdan/Downloads/TvCoins/frontend/app/cypress/e2e/App_studio/layout/test.cy.js, initial? true +600ms
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv2' with value /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout/test.cy.js +1s
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv4' with value /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout/test.cy.js +0ms
  cypress:server:controllers:spec sending spec { filePath: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/e2e/App_studio/layout/test.cy.js' } +1s
GET /__cypress/tests?p=cypress/e2e/App_studio/layout/test.cy.js 200 1386.772 ms - -
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: [ 'lib.dom.d.ts', 'lib.dom.iterable.d.ts', 'lib.esnext.d.ts' ], allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: true, inlineSourceMap: true, inlineSources: true, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true } +2s
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: [ 'lib.dom.d.ts', 'lib.dom.iterable.d.ts', 'lib.esnext.d.ts' ], allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: true, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true } +0ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +10ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +0ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +63ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +1ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +7ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +0ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +14ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +0ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +6ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +1ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +7ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +0ms
  cypress:webpack typescript unmodified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +5ms
  cypress:webpack typescript modified createProgram options { target: 99, useDefineForClassFields: true, lib: undefined, allowJs: false, skipLibCheck: true, esModuleInterop: false, allowSyntheticDefaultImports: true, strict: true, forceConsistentCasingInFileNames: true, module: 99, moduleResolution: 2, resolveJsonModule: true, isolatedModules: true, noEmit: undefined, downlevelIteration: true, configFilePath: '/home/bohdan/Downloads/TvCoins/frontend/models/tsconfig.json', suppressOutputPathCheck: true, sourceMap: true, rootDir: undefined, jsx: 1, incremental: undefined, declaration: undefined, declarationMap: undefined, emitDeclarationOnly: undefined, outFile: undefined, composite: undefined, tsBuildInfoFile: undefined, paths: undefined, rootDirs: undefined, types: undefined, out: undefined, noLib: true, noResolve: true, noEmitOnError: undefined, declarationDir: undefined, allowNonTsExtensions: true } +1ms
  cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 44444 } +5s
  cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 44418 } +0ms
  cypress:webpack finished bundling /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support/e2e.js +4s
Hash: bf7654b5de70d2ffaf75
Version: webpack 4.46.0
Time: 4867ms
Built at: 06/09/2023 12:00:56 PM
 Asset      Size  Chunks             Chunk Names
e2e.js  12.9 MiB    main  [emitted]  main
Entrypoint main = e2e.js
[0] multi ./cypress/support/e2e.js 28 bytes {main} [built]
[../common/temp/node_modules/.pnpm/@cypress+code-coverage@3.10.3_cypress@12.9.0/node_modules/@cypress/code-coverage/support.js] 7.26 KiB {main} [built]
[../common/temp/node_modules/.pnpm/cypress-real-events@1.7.6_cypress@12.9.0/node_modules/cypress-real-events/support.js] 1.45 KiB {main} [built]
[./cypress/support/commands_for_all_pages.js] 681 bytes {main} [built]
[./cypress/support/commands_for_banners.js] 18.9 KiB {main} [built]
[./cypress/support/commands_for_branding_colors.js] 8.01 KiB {main} [built]
[./cypress/support/commands_for_branding_menus.js] 2.83 KiB {main} [built]
[./cypress/support/commands_for_channels.js] 1.86 KiB {main} [built]
[./cypress/support/commands_for_distribution.js] 2.25 KiB {main} [built]
[./cypress/support/commands_for_files.js] 12.2 KiB {main} [built]
[./cypress/support/commands_for_groups.js] 9.91 KiB {main} [built]
[./cypress/support/commands_for_live_sources.js] 3.95 KiB {main} [built]
[./cypress/support/commands_for_login_page.js] 3.29 KiB {main} [built]
[./cypress/support/commands_for_on_demand_page.js] 35.6 KiB {main} [built]
[./cypress/support/e2e.js] 1.74 KiB {main} [built]
    + 1194 hidden modules
  cypress:webpack - compile finished for /home/bohdan/Downloads/TvCoins/frontend/app/cypress/support/e2e.js, initial? true +71ms
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv3' with value /home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support/e2e.js +4s
  cypress:server:controllers:spec sending spec { filePath: '/home/bohdan/.config/Cypress/cy/production/projects/app-635bfeb117135bc0bad5b57f468ba67e/bundles/cypress/support/e2e.js' } +4s
GET /__cypress/tests?p=cypress/support/e2e.js 200 5100.396 ms - -
  cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 44448 } +2s
  cypress:server:socket-base backend:request { eventName: 'reset:server:state', args: [] } +13s
  cypress:proxy:http:util:buffers resetting buffers +14s
  cypress:server:remote-states resetting remote state +7s
  cypress:server:socket-base backend:request { eventName: 'get:rendered:html:origins', args: [] } +18ms
  cypress:server:socket-base automation:request get:cookies {} +4ms
  cypress:server:automation:cookies getting:cookies {} +0ms
  cypress:server:automation:cookies received get:cookies [] +4ms
  cypress:server:socket-base automation:request clear:cookies [] +8ms
  cypress:server:automation:cookies clear:cookies 0 +3ms
  cypress:server:socket-base backend:request { eventName: 'reset:rendered:html:origins', args: [] } +4ms
  cypress:server:socket-base backend:request { eventName: 'task', args: [ { task: 'resetCoverage', arg: [Object], timeout: 60000 } ] } +14ms
  cypress:server:task run task resetCoverage with arg { isInteractive: true } +0ms
  cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'task', isRegistered: true } +7s
  cypress:lifecycle:EventRegistrar execute plugin event 'task' Node 'v16.16.0' with args: 'resetCoverage' { isInteractive: true } undefined +0ms
  cypress:lifecycle:ProjectConfigManager call event task for invocation id inv5 +2s
  cypress:lifecycle:child:RunPlugins:21342 execute plugin event: task ({ invocationId: 'inv5', eventId: 3 }) +7s
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv5' with value null +4ms
  cypress:server:task result is: null +5ms
  cypress:server:socket-base backend:request { eventName: 'net', args: [ 'route:added', { routeId: '1686301258820-2', hasInterceptor: true, routeMatcher: [Object] } ] } +56ms
  cypress:net-stubbing:server:driver-events received driver event { eventName: 'route:added', args: [ 'route:added', { routeId: '1686301258820-2', hasInterceptor: true, routeMatcher: [Object] } ] } +0ms
  cypress:server:routes proxying static assets /__/assets/FiraCode-VariableFont_wght-16865a4d.ttf, params[0] FiraCode-VariableFont_wght-16865a4d.ttf +8s
  cypress:server:socket-base backend:request { eventName: 'http:request', args: [ { url: 'https://frontend.ci.internal.stream-it.app/__coverage__', method: 'GET', encoding: 'utf8', gzip: true, timeout: 30000, followRedirect: true, failOnStatusCode: false, retryIntervals: [Array], retryOnNetworkFailure: true, retryOnStatusCodeFailure: false } ] } +136ms
  cypress:server:automation:cookies getting:cookies { url: 'https://frontend.ci.internal.stream-it.app/__coverage__' } +212ms
  cypress:server:automation:cookies received get:cookies [] +3ms
  cypress:server:request got cookies from browser { reqUrl: 'https://frontend.ci.internal.stream-it.app/__coverage__', cookies: [] } +0ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://frontend.ci.internal.stream-it.app/__coverage__' } +15s
  cypress:network:connect beginning getAddress { hostname: 'frontend.ci.internal.stream-it.app', port: 443 } +8s
  cypress:network:connect got addresses { hostname: 'frontend.ci.internal.stream-it.app', port: 443, addresses: [ { address: '18.244.102.12', family: 4 }, { address: '18.244.102.56', family: 4 }, { address: '18.244.102.65', family: 4 }, { address: '18.244.102.120', family: 4 } ] } +5ms
GET /__/assets/FiraCode-VariableFont_wght-16865a4d.ttf 200 0.844 ms - -
  cypress:network:agent got family { family: 4, href: 'https://frontend.ci.internal.stream-it.app/__coverage__' } +16ms
  cypress:server:request received status code & headers on request { requestId: 'request6', statusCode: 200, headers: { 'content-type': 'text/html' } } +115ms
  cypress:server:socket-base backend:request { eventName: 'task', args: [ { task: 'coverageReport', arg: null, timeout: 180000 } ] } +128ms
  cypress:server:task run task coverageReport with arg null +315ms
  cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'task', isRegistered: true } +319ms
  cypress:lifecycle:EventRegistrar execute plugin event 'task' Node 'v16.16.0' with args: 'coverageReport' null undefined +0ms
  cypress:lifecycle:ProjectConfigManager call event task for invocation id inv7 +315ms
  cypress:lifecycle:child:RunPlugins:21342 execute plugin event: task ({ invocationId: 'inv7', eventId: 3 }) +319ms
⚠️ file /home/bohdan/Downloads/TvCoins/frontend/app/.nyc_output/out.json has no coverage information
Did you forget to instrument your web application? Read https://github.com/cypress-io/code-coverage#instrument-your-application
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv7' with value /home/bohdan/Downloads/TvCoins/frontend/app/coverage +63ms
  cypress:server:task result is: /home/bohdan/Downloads/TvCoins/frontend/app/coverage +63ms
  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    │    'Electron'     │      1       │           '21904'            │    2.24    │      1.13      │  541.71  │    416.12    │   541.71    │
  cypress:server:util:process_profiler │    1    │     'plugin'      │      1       │           '21342'            │    7.82    │      3.91      │  480.1   │    305.16    │    480.1    │
  cypress:server:util:process_profiler │    2    │     'cypress'     │      1       │           '20871'            │    1.03    │      1.6       │  375.46  │    358.3     │   387.92    │
  cypress:server:util:process_profiler │    3    │ 'electron-shared' │      4       │ '20873, 21030, 20874, 21438' │    0.31    │      0.1       │  344.56  │    265.63    │   355.57    │
  cypress:server:util:process_profiler │    4    │    'launchpad'    │      1       │           '21530'            │    0.08    │      0.04      │  117.79  │    122.79    │   127.79    │
  cypress:server:util:process_profiler │    5    │      'other'      │      2       │        '22618, 22619'        │     0      │       0        │   2.5    │     2.5      │     2.5     │
  cypress:server:util:process_profiler │    6    │      'TOTAL'      │      10      │             '-'              │   11.48    │      5.1       │ 1862.12  │   1189.15    │   1862.12   │
  cypress:server:util:process_profiler └─────────┴───────────────────┴──────────────┴──────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +10s
  cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 44428 } +6s
^A^A  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    │    'Electron'     │      1       │           '21904'            │    0.02    │      0.76      │  501.89  │    444.71    │   541.71    │
  cypress:server:util:process_profiler │    1    │     'plugin'      │      1       │           '21342'            │     0      │      2.61      │  480.1   │    363.47    │    480.1    │
  cypress:server:util:process_profiler │    2    │     'cypress'     │      1       │           '20871'            │    0.74    │      1.39      │  359.37  │    358.57    │   387.92    │
  cypress:server:util:process_profiler │    3    │ 'electron-shared' │      4       │ '20873, 21030, 20874, 21438' │    0.02    │      0.08      │  333.83  │    282.68    │   355.57    │
  cypress:server:util:process_profiler │    4    │    'launchpad'    │      1       │           '21530'            │    0.01    │      0.03      │  117.68  │    121.09    │   127.79    │
  cypress:server:util:process_profiler │    5    │      'other'      │      2       │        '23146, 23147'        │     0      │       0        │   2.5    │     2.5      │     2.5     │
  cypress:server:util:process_profiler │    6    │      'TOTAL'      │      10      │             '-'              │    0.78    │      4.02      │ 1795.36  │    1340.7    │   1862.12   │
  cypress:server:util:process_profiler └─────────┴───────────────────┴──────────────┴──────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +10s
  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    │    'Electron'     │      1       │           '21904'            │     0      │      0.57      │  501.89  │    459.01    │   541.71    │
  cypress:server:util:process_profiler │    1    │     'cypress'     │      1       │           '20871'            │    0.4     │      1.19      │  360.27  │    358.91    │   387.92    │
  cypress:server:util:process_profiler │    2    │ 'electron-shared' │      4       │ '20873, 21030, 20874, 21438' │     0      │      0.07      │  333.82  │    292.91    │   355.57    │
  cypress:server:util:process_profiler │    3    │     'plugin'      │      1       │           '21342'            │    0.78    │      2.15      │  270.7   │    340.28    │    480.1    │
  cypress:server:util:process_profiler │    4    │    'launchpad'    │      1       │           '21530'            │     0      │      0.02      │  117.74  │    120.25    │   127.79    │
  cypress:server:util:process_profiler │    5    │      'other'      │      2       │        '23590, 23591'        │     0      │       0        │   2.5    │     2.5      │     2.5     │
  cypress:server:util:process_profiler │    6    │      'TOTAL'      │      10      │             '-'              │    1.18    │      3.45      │ 1586.94  │   1389.95    │   1862.12   │
  cypress:server:util:process_profiler └─────────┴───────────────────┴──────────────┴──────────────────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +10s
^C
bohdan@bohdan-IdeaPad-5-15ALC05:~/Downloads/TvCoins/frontend/app$

Other

No response

mschile commented 1 year ago

Hi @BohdanQatestlab 👋, thanks for logging this issue. I have replicated your issue in the latest version of Cypress and will forward it to the appropriate team. They will evaluate the priority of the issue and consider their capacity to pick it up. Please note that this does not guarantee that this issue will be resolved. The issue will indicate status changes during evaluation. Thanks!

mschile commented 1 year ago

Digging into this a little bit more, when we are waiting to see if the intercept will add an alias, we retry but this retry returns since it thinks the command has failed with an error. The cy.wait command then resolves with undefined causing the destructuring error.

@BohdanQatestlab, I believe your workaround works because you just happen to be waiting long enough for the request to be made and the intercept to be hit which adds the alias and allows the wait to succeed.