-
Notifications
You must be signed in to change notification settings - Fork 156
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
Setup Cypress for E2E testing #875
Comments
Can probably start by taking over #537, yanking out WP Acceptance, and adding in Cypress (along with any existing PHPUnit tests). |
@10up/open-source-practice I'm facing the following issues to proceed with Cypress tests (and got stuck), can anyone suggest/help?
So it worked! (thanks @Sidsector9), but when I added a new site
To update it, we need at least Seems like if issue 1 is fixed, issues 2 and 3 won't be required anymore.
|
@faisal-alvi for point (2), you can try using |
@Sidsector9 Yes, I will but It's not only about creating a site, I need to literally visit the Distributor plugin setting page, Create posts, Pull, Push, etc. |
The main problem here is WordPress multisite can't be installed on domains with custom ports (except 80 and 443) (see image below). There is an ongoing effort to fix this (see the Trac ticket). There are some possible ideas I tested:
|
Steps to install multisite using
|
@dinhtungdu do we have that sort of info documented in the utils repo? If not, it would be great to add there for others to hopefully find in the future. |
We don't, I will add a note there. |
Thanks for the suggestions @dinhtungdu! Update: As discussed in weekly meeting, we still need to figure out why the |
@faisal-alvi I understand your issue now. For the wizard, to avoid the CORS issue, we make requests from the server-side to check the remote site information: distributor/includes/external-connection-cpt.php Lines 810 to 843 in 47a2807
As @peterwilsoncc pointed out in the meeting, making a request from the webserver to IMO, there are two possible solutions:
The first one requires a more complex setup but will replicate closer to the real installation. The second solution sacrifices the real use case but is a much simpler setup. What do you think? Which solution do you prefer? |
@dinhtungdu I prefer the second solution. However, we need a subdir multisite inside |
@faisal-alvi As I mentioned above, I set up successfully a subdirectory multisite with |
@dinhtungdu yes got it, I will try as soon as I get some time to work on this ticket. Thank you, Tung! |
@dinhtungdu - I've tried the steps mentioned above.
I'm still seeing http://localhost8889/ working instead of the 80 port. Also, the subsites in it does not work. |
@faisal-alvi You can set the port as follows. Subsites won't work if your port isn't
|
I'll move this to the 2.0.0 milestone as 1.7.0 likely to be released early next week. |
Is your enhancement related to a problem? Please describe.
See overall concept in the OSBP guide and example setups on Simple Podcasting, Restricted Site Access, and 10up/ElasticPress#2446.
Describe the solution you'd like
Designs
n/a
Describe alternatives you've considered
n/a
Additional context
https://github.com/10up/cypress-wp-setup/ && https://github.com/10up/cypress-wp-utils will be helpful in getting this spun up and some initial test commands to leverage.
The text was updated successfully, but these errors were encountered: