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

a flag to rewrite URLs #60

Open
kkhaidukov opened this issue Jan 17, 2022 · 1 comment · May be fixed by #68
Open

a flag to rewrite URLs #60

kkhaidukov opened this issue Jan 17, 2022 · 1 comment · May be fixed by #68

Comments

@kkhaidukov
Copy link

The problem that I'm having:

  • I'm recording against an integrated environment, which results in its URLs getting into the .spec.json
  • on CI, however, I'm running the tests against a localhost env, so the requests are not matched, because the URLs are different

A simple solution might be to add a config option that would match a base url and substitute it with '**', but maybe someone could point me to another way of making it work?

@Sam152 Sam152 linked a pull request May 12, 2022 that will close this issue
@Sam152
Copy link

Sam152 commented May 12, 2022

I had this same problem. I've submitted a PR which is one approach for addressing it.

Edit: I ended up rolling this in as a feature of: https://github.com/Sam152/cypress-replay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants