Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E fails with local run #323

Open
nesterone opened this issue Apr 17, 2021 · 2 comments
Open

E2E fails with local run #323

nesterone opened this issue Apr 17, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nesterone
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout project from 'dev'
  2. yarn reset
  3. yarn run cy:ci
  4. See failing tests

Expected behavior
No failed tests, all pass

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Mac OS

Additional context

  Running:  login.spec.mjs                                                                  (1 of 2)


  Logging In
    ✓ fail login on invalid email (2637ms)
    ✓ fail login with empty password (975ms)
    1) redirects to /home on success
    2) stay logged on browser refresh
    3) navigate to last location on browser refresh


  2 passing (19s)
  3 failing

  1) Logging In
       redirects to /home on success:
     AssertionError: Timed out retrying after 4000ms: expected 'http://localhost:8086/login#/login' to include '/home'
      at Context.eval (http://localhost:8086/__cypress/tests?p=e2e/cypress/integration/login.spec.mjs:124:14)

  2) Logging In
       stay logged on browser refresh:
     AssertionError: Timed out retrying after 4000ms: expected 'http://localhost:8086/login#/login' to include '/home'
      at Context.eval (http://localhost:8086/__cypress/tests?p=e2e/cypress/integration/login.spec.mjs:130:14)

  3) Logging In
       navigate to last location on browser refresh:
     AssertionError: Timed out retrying after 4000ms: Expected to find element: `[data-test-id="example"]`, but never found it.
      at Context.eval (http://localhost:8086/__cypress/tests?p=e2e/cypress/integration/login.spec.mjs:138:8)

  (Results)
@nesterone nesterone added the bug Something isn't working label Apr 17, 2021
@yzhbankov
Copy link
Collaborator

yzhbankov commented Apr 18, 2021

All works fine in my environment:

image

@nesterone
Copy link
Contributor Author

strange still an issue with local env ... need to investigate, in a perspective better to run thouse test inside docker ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants