wix-incubator / corvid

Download your Wix site, code in a local IDE, collaborate, use git, and more!
MIT License
38 stars 10 forks source link

Use local "Published" version of the site for testing #86

Open gasbi opened 5 years ago

gasbi commented 5 years ago

Is your feature request related to a problem? Please describe. When using the local editor npx corvid open-editor, it is not possible to see the "Published" version of the site. Wix has some limitation to this version when using some Corvid APIs, like wix-users or wix-pay, which do not allow to test their functionalities on "Preview" mode.

Therefore, when using the local editor, it is not possible for us to test such important parts of the site like the use of another User with other roles than 'Admin'. To do that, you must Push your site, with all problems that implies in the development workflow that accounts on the local revisioning of the site.

Describe the solution you'd like The expected behavior would be to be able to see a local version of the "Published" site under a local server on your machine, without the necessity to Push the local changes. And therefore be able to use the functionalities of wix-users locally as well.

Describe alternatives you've considered This might end up with us to stop using the local editor.

Screenshots

corvid-cli_published-error

Desktop info:

Additional context We are aware Corvid CLI is in Alpha, and would appreciate any help the Corvid team can provide.

Thanks very much!

stevesos commented 5 years ago

A necessary requirement. Since the Editor is already essentially proxying some authentication services (npx corvid login & logout) from the Wix Editor and BI system. It should be feasible to proxy BI User and CRM services to imitate a published site from Electron.

tomenden commented 5 years ago

It sounds like you are describing a feature which is not available on the online editor as well. When you say you would like to "use local Published version" - are you referring to the actual published site, or the local version of your site running on production servers?

gasbi commented 5 years ago

Hi @tomenden, Exactly. I am referring to be able to see the local version of my site running on the servers, as if it were the Published version of the site, but without pushing the changes to the online editor, so that you can test the site with a user different from yours. Let me know if I can do any further clarification, or help!

Thank you very much for your replies!

TomsOverBaghdad commented 4 years ago

Plus one on this question. As our site gets user ready, we need a way to test our sign up flow locally, reliably, and easily. Pushing the changes can't happen, we don't want to release bugs to our users.