https://cypress.io logo
Cypress Github Action: Redirection on Login Times ...
# i-need-help
b
Hi, I previously posted this as an issue on the Github Action repository: https://github.com/cypress-io/github-action/issues/749 I'm running Cypress tests within an environment using Nx and Yarn. When I run tests for our login page they successfully pass on my machine but the test for a successful login always times out on the redirection and fails when running in a Github Action environment. Please see the issue link above for associated configurations and test files. Any suggestions you can offer are appreciated, thank you!
e
Are you positive the server is running in GHA? Can you see the landing page in the preview video before getting redirected to login?
b
Yes, the other tests on the landing/login page (for example, to test showing an error message when trying to login without a username/password) are passing successfully.
n
I may be completely wrong but I see you have baseUrl localhost and I dont see you run your app as part of the same github action job. As I know each job runs on separate environment.
b
The command runs the Cypress test through Nx. In the segment of the Nx workspace file I include I set options and configurations that build and run the app before commencing with the Cypress tests. But you bring up a good point since I've been wondering if it's possible that Nx and the Cypress Github Action environment aren't working well together.
7 Views