Command Log not showing in test runner
See original GitHub issueCurrent behavior:
When running a cypress integration test, the Test Runner navigates to the application specified in cy.visit(), but I can no longer see the Command Log on the left hand side. The Command Log shows for a brief second before the Test Runner is completely overtaken by the application. This occurs with Chrome 64. Electron 59 works fine and shows the Command Log when running tests.
Desired behavior:
Display the Command Log on the left hand side while Test Runner calls cy.visit()
Steps to reproduce:
Add a test called form-input.spec.js in cypress/integration folder with the following
/// <reference types="Cypress"/>
context("Form Input", () => {
beforeEach(() => {
cy.visit("localhost:3000");
cy.log("Test");
});
it(".should() - assert that <title> is correct", function() {
expect(true).to.equal(true);
});
});,
Start a local development server for create react app
Run cypress open
Click the test name, you will see the Test Runner open up, the Command Log shows for a second, and then all you see is the Application.
Versions
Cypress.exe v3.0.2 and npm v3.0.2 Windows 7 Enterprise
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:11 (5 by maintainers)
Top GitHub Comments
Long story short: update to
3.1.5
version.Long story:
myapp
my own app andexampleapp
the downloaded one)exampleapp
everything works finemyapp
from the fresh Cypress everything works finemyapp
(plugins, commands, Typescript… everything) but the issue remainedmyapp
goes 304 when loading the__/#/tests...
URL, the__/
is the faulty one (whenexampleapp
goes 200 with the same route)in
client.coffee
exampleapp
, when loaded by Cypress, sends a cookie__cypress.unload=true
to the server__cypress.unload=true
cookie tomyapp
. The __/ route goes 200 instead of 304 but the command log panel doesn’t show upexampleapp
was running the 3.1.5 version,myapp
the 3.1.3I hope my comment could help other people facing the same problem or the Cypress team for some eventual investigations
I can confirm the behavior above. The log on the left is being displayed when the angular application is hosted in a staged environment. The log disappears and tests are not run when the same application is hosted on localhost by angular CLI. The only difference is in the baseurl and authentication method. This still happens on Chromium 73. Electron seems unaffected, however I can’t use that because of another issue (crashes with white browser screen) but this is different story.