Replies: 1 comment 2 replies
-
Are you using the Then in your app (or maybe in the tests?) you could load the file based on the actual URL? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is anyone using Ziggy in a Laravel app on which they also do Cypress E2E testing? I run Cypress tests using several Valet URLs to simulate different kinds of users. With multiple domains, obviously I can't use the ziggy.js routes file from my regular environment. The only things I can think of so far are a) to use relative routes everywhere; or b) generate new ziggy.js route files in Cypress'
beforeEach()
hook. I'm not especially enamored with being forced to use relative routes. But generating special ziggy route files for each Cypress integration file feels messy and prevents me from cross-checking errors in my regular environment while testing. Has anyone tried anything else?Beta Was this translation helpful? Give feedback.
All reactions