Closed briggsge closed 5 months ago
The rest of the logs are printed below
2023-11-06T17:08:39.360Z cypress:server:run project ended with results {
stats: {
suites: 1,
tests: 1,
passes: 1,
pending: 0,
skipped: 0,
failures: 0,
wallClockStartedAt: 2023-11-06T17:08:31.936Z,
wallClockDuration: 7419,
wallClockEndedAt: 2023-11-06T17:08:39.355Z
},
reporter: 'spec',
reporterStats: {
suites: 1,
tests: 1,
passes: 1,
pending: 0,
failures: 0,
start: 2023-11-06T17:08:31.939Z,
end: 2023-11-06T17:08:39.359Z,
duration: 7420
},
hooks: [
{
hookId: 'h1',
hookName: 'before all',
title: [Array],
body: '() => {\n cy.clearAllSessionStorage();\n cy.pause();\n }'
},
{
hookId: 'h2',
hookName: 'before each',
title: [Array],
body: '() => {\n cy.login();\n cy.pause();\n }'
}
],
tests: [
{
testId: 'r3',
title: [Array],
state: 'passed',
body: '() => {\n' +
" cy.visit(Cypress.env('url')).wait(5000);\n" +
' cy.get("body").then(body => {\n' +
' return body.text();\n' +
' }).then(text => {\n' +
' cy.log(text);\n' +
' });\n' +
' }',
displayError: null,
attempts: [Array]
}
]
}
2023-11-06T17:08:39.360Z cypress:server:run received project end
2023-11-06T17:08:39.360Z cypress:server:run received videoController { videoController: undefined }
2023-11-06T17:08:39.360Z cypress:server:run spec results: { error: null, reporter: 'spec', reporterStats: { suites: 1, tests: 1, passes: 1, pending: 0, failures: 0, start: 2023-11-06T17:08:31.939Z, end: 2023-11-06T17:08:39.359Z, duration: 7420 }, screenshots: [], spec: { absolute: '/replaced/path/to/cypressProject/cypress/e2e/test/test.cy.js', fileExtension: '.js', fileName: 'test', name: 'test.cy.js', relative: 'cypress/e2e/test/test.cy.js' }, stats: { duration: 7419, endedAt: 2023-11-06T17:08:39.355Z, failures: 0, passes: 1, pending: 0, skipped: 0, startedAt: 2023-11-06T17:08:31.936Z, suites: 1, tests: 1 }, tests: [ { attempts: [Array], displayError: null, duration: 6298, state: 'passed', title: [Array] } ], video: null }
2023-11-06T17:08:39.360Z cypress:server:run execute after:spec
2023-11-06T17:08:39.360Z cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:spec', isRegistered: false }
2023-11-06T17:08:39.360Z cypress:server:run No video found after spec ran - skipping compression. Video path: undefined
2023-11-06T17:08:39.361Z cypress:server:run attempting to close the browser tab
2023-11-06T17:08:39.361Z cypress:server:browsers:cri-client closing cri client { closed: false, target: '24FF39D344995D5497677264309CD98C' }
2023-11-06T17:08:39.362Z cypress:server:browsers:cri-client closed cri client { closed: true, target: '24FF39D344995D5497677264309CD98C' }
2023-11-06T17:08:39.363Z cypress:server:browsers:cri-client closing cri client { closed: false, target: 'ws://127.0.0.1:53637/devtools/browser/5cb1fcd6-80a4-4948-a847-84c373e4e268' }
2023-11-06T17:08:39.363Z cypress:server:browsers:cri-client closed cri client { closed: true, target: 'ws://127.0.0.1:53637/devtools/browser/5cb1fcd6-80a4-4948-a847-84c373e4e268' }
2023-11-06T17:08:39.363Z cypress:server:browsers:electron closed event fired
2023-11-06T17:08:39.363Z cypress:server:windows error removing all extensions { err: TypeError: Object has been destroyed at Object.f (<embedded>:4454:93384) at BrowserWindow.<anonymous> (<embedded>:4454:106864) at Object.onceWrapper (node:events:628:26) at BrowserWindow.emit (node:events:525:35) at T.sendCloseCommandFn (<embedded>:4454:101570) at process.processTicksAndRejections (node:internal/process/task_queues:95:5), extensions: undefined }
2023-11-06T17:08:39.363Z cypress:server:browsers browser instance exit event received { code: undefined, signal: undefined }
2023-11-06T17:08:39.363Z cypress:server:preprocessor removeFile /replaced/path/to/cypressProject/cypress/e2e/test/test.cy.js
2023-11-06T17:08:39.363Z cypress:server:preprocessor base emitter plugin close event
2023-11-06T17:08:39.363Z cypress:server:preprocessor base emitter native close event
2023-11-06T17:08:39.363Z cypress:server:preprocessor base emitter native close event
2023-11-06T17:08:39.363Z cypress:server:browsers:electron closing remote interface client { options: {} }
2023-11-06T17:08:39.363Z cypress:server:browsers:browser-cri-client browser cri client is already closed
2023-11-06T17:08:39.363Z cypress:server:run all BrowserWindows closed, not exiting
2023-11-06T17:08:39.364Z cypress:webpack close /replaced/path/to/cypressProject/cypress/e2e/test/test.cy.js
2023-11-06T17:08:39.372Z cypress:server:run resetting server state
2023-11-06T17:08:39.372Z cypress:proxy:http:util:buffers resetting buffers
2023-11-06T17:08:39.372Z cypress:network:cors Parsed URL { port: '80', protocol: null, subdomain: null, domain: '', tld: '' }
2023-11-06T17:08:39.372Z cypress:network:cors Parsed URL { port: '53642', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' }
2023-11-06T17:08:39.372Z cypress:server:remote-states setting remote state { auth: undefined, origin: 'http://localhost:53642', strategy: 'file', fileServer: 'http://localhost:53643', domainName: 'localhost', props: null } for http://localhost:53642
2023-11-06T17:08:39.372Z cypress:network:cors Parsed URL { port: '53642', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' }
2023-11-06T17:08:39.372Z cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:53642', strategy: 'file', fileServer: 'http://localhost:53643', domainName: 'localhost', props: null } for: http://localhost:53642
2023-11-06T17:08:39.374Z cypress:server:run final results of all runs: { browserName: 'electron', browserPath: '', browserVersion: '114.0.5735.289', config: { projectRoot: '/replaced/path/to/cypressProject', projectName: 'Arkos360QualityAssurance', configFile: 'cypress.config.js', isTextTerminal: true, animationDistanceThreshold: 5, arch: 'arm64', baseUrl: null, blockHosts: null, chromeWebSecurity: true, clientCertificates: [], defaultCommandTimeout: 4000, downloadsFolder: '/replaced/path/to/cypressProject/cypress/downloads', env: { url: 'https://www.google.com' }, 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: '/replaced/path/to/cypressProject', fixturesFolder: '/replaced/path/to/cypressProject/cypress/fixtures', excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, numTestsKeptInMemory: 0, platform: 'darwin', pageLoadTimeout: 60000, port: 53642, projectId: null, redirectionLimit: 20, reporter: 'spec', reporterOptions: null, requestTimeout: 5000, resolvedNodePath: '/opt/homebrew/Cellar/node/20.5.1/bin/node', resolvedNodeVersion: '20.5.1', responseTimeout: 30000, retries: { runMode: 0, openMode: 0, experimentalStrategy: undefined, experimentalOptions: undefined }, screenshotOnRunFailure: true, screenshotsFolder: '/replaced/path/to/cypressProject/cypress/screenshots', slowTestThreshold: 10000, scrollBehavior: 'top', supportFile: '/replaced/path/to/cypressProject/cypress/support/e2e.js', taskTimeout: 60000, testIsolation: true, trashAssetsBeforeRuns: true, userAgent: null, video: false, videoCompression: false, videosFolder: '/replaced/path/to/cypressProject/cypress/videos', viewportHeight: 660, viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}', browsers: [ [Object], [Object], [Object] ], cypressBinaryRoot: '/replaces/path/toLibrary/Library/Caches/Cypress/13.4.0/Cypress.app/Contents/Resources/app', hosts: null, isInteractive: true, version: '13.4.0', testingType: 'e2e', browser: null, cypressInternalEnv: 'production' }, cypressVersion: '13.4.0', endedTestsAt: 2023-11-06T17:08:39.355Z, osName: 'darwin', osVersion: '23.1.0', runs: [ { error: null, reporter: 'spec', reporterStats: [Object], screenshots: [], spec: [Object], stats: [Object], tests: [Array], video: null } ], runUrl: undefined, startedTestsAt: 2023-11-06T17:08:31.936Z, totalDuration: 7419, totalFailed: 0, totalPassed: 1, totalPending: 0, totalSkipped: 0, totalSuites: 1, totalTests: 1 }
2023-11-06T17:08:39.374Z cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'after:run', isRegistered: false }
2023-11-06T17:08:39.389Z cypress:server:request aborting { requestId: 'request59' }
2023-11-06T17:08:39.390Z cypress:server:request received status code & headers on request { requestId: 'request60', statusCode: 204, headers: { 'content-type': 'text/html; charset=UTF-8' } }
2023-11-06T17:08:39.390Z cypress:server:request successful response received { requestId: 'request60' }
2023-11-06T17:08:39.390Z cypress:net-stubbing:server:intercept-response InterceptResponse { req: { url: '/gen_204?atyp=i&ei=kR1JZbi2O7qjptQPkqSbQA&ct=slh&v=t1&m=HV&pv=0.13343418696613107&me=1:1699290514159,V,0,0,1000,660:0,B,660:0,N,1,kR1JZbi2O7qjptQPkqSbQA:0,R,1,1,0,0,1000,660:358,x:4831,e,H&zx=1699290519348&opi=89978449' }, request: undefined }
2023-11-06T17:08:39.390Z cypress:network:cors Parsed URL { port: '53642', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' }
2023-11-06T17:08:39.390Z cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:53642', strategy: 'file', fileServer: 'http://localhost:53643', domainName: 'localhost', props: null } for: http://localhost:53642
2023-11-06T17:08:39.391Z cypress:server:remote-states getting primary remote state: { auth: undefined, origin: 'http://localhost:53642', strategy: 'file', fileServer: 'http://localhost:53643', domainName: 'localhost', props: null }
2023-11-06T17:08:39.391Z cypress:network:cors Parsed URL { port: '53642', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' }
2023-11-06T17:08:39.391Z cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:53642', strategy: 'file', fileServer: 'http://localhost:53643', domainName: 'localhost', props: null } for: http://localhost:53642
2023-11-06T17:08:39.391Z cypress:server:cypress about to exit with code 0
2023-11-06T17:08:39.392Z cypress:server:browsers browsers.kill called with no active instance
2023-11-06T17:08:39.392Z cypress:proxy:http:util:prerequests metrics: { browserPreRequestsReceived: 106, proxyRequestsReceived: 57, immediatelyMatchedRequests: 13, unmatchedRequests: 0, unmatchedPreRequests: 0 }
2023-11-06T17:08:39.392Z cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 53679 }
2023-11-06T17:08:39.392Z cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 53696 }
cypress:cli child event fired { event: 'exit', code: 0, signal: null } +10s
cypress:cli child event fired { event: 'close', code: 0, signal: null } +0ms
I ran the provided code. What's the behavior that's not behaving as it should? I don't see a reload.
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
This issue has been closed due to inactivity.
Current behavior
Currently, if a test uses cy.visit(Cypress.env('urlParam')) where
urlParam
is a valid url, Cypress will reload the tab and fire off tests from the beginning. If there are multiple calls using cy.visit(Cypress.env('urlParam')), the test can break while running on the UI.Desired behavior
cy.visit(Cypress.env('urlParam')) should not cause Cypress to reload tests, but behave exactly how cy.visit('https://my-hardcoded-url.com') behaves.
Test code to reproduce
Caveat to below: this will replicate the refresh window issue, but it will not replicate the tests breaking and I cannot share the url/credentials to replicate Cypress breaking, but it does.
Please note, this is an out-of the box project configuration for e2e tests without additional packages added.
cypress/support/e2e.js
cypress/e2e/test.js
cypress.env.json
Cypress Version
13.4.0 (may be since 9.x)
Node version
v20.5.1
Operating System
macOS 14.1
Debug Logs
Other
Logs were too long to add to the Debug Logs - could not submit bug as it was > 65536 characters long