-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support for ember projects with a rootURL containing a subdirectory #180
Comments
Hey @jordanbyron! Glad to hear you're liking the addon. I think this is something we would be interested in supporting, I have two quick questions.
Thanks! |
Hey @ryanto,
Right now I don't have one.
It does not work with fastboot tests, even if we prepend our sub directory to the visit string, as you did in your example. It appears all of the requests from
Obviously rails does not know how to respond to those requests, and they should instead be hitting The end result in our ember tests being:
Excellent question. In our acceptance tests we don't have to specify the It may be worth pointing out that depending on our environment we do have different values in our config for Hopefully that helps clarify what we are seeing. I'm happy to answer any more questions or spin up an example app if that would help illustrate what we are seeing. |
Hey @jordanbyron Sorry - this totally fell off my radar! Thanks so much for doing all the research and writing all this up, it's super helpful! I won't have time in the next few months to implement this, but this should be something fastboot-testing supports out of the box! I think the best bet is for us to copy the same API that acceptance testing follows. Switching between acceptance tests and fastboot tests shouldn't require knowledge of inner workings, in fact I think Thanks again for writing all this up, really appreciate it! |
Hi Ya'll!
Unless I am mistaken, it doesn't appear this library supports ember projects hosted from within a subdirectory:
rootURL: "/my-ember-app/"
for example.mockServer
andvisit
all assume the ember project is being hosted at the bare root and as a result requests are missing the ember app.I've poked around the code and see a few places I think would need to be changed to respect the host app's
rootURL
configuration. Let me know if this is something you plan on supporting or think would be easy to add support for.Excellent work on the project. I was really excited to get this up and running and the documentation is stellar!
The text was updated successfully, but these errors were encountered: