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

Get subdomain multisite tests working properly #148

Merged
merged 22 commits into from
Aug 2, 2024

Conversation

jazzsequence
Copy link
Contributor

@jazzsequence jazzsequence commented Jul 31, 2024

We're not running the full setup-playwright-tests script because subdomain multisites don't need most of the setup. However, it does need some of the setup (specifically copying the changes from the PR to the fixture site), so we need to manually add those back into that workflow.

In the future we might be able to run just portions of the script for the purpose of subdomain multisite so we're not duplicating code here.

This PR is blocked by #147 -- the changes the robot fixed were part of what was updated in that PR. Merging this PR before that one will create a commit that gets dropped during deploy.

This change includes some tweaks to the actual playwright tests and some deviations in the setup. It was discovered in running the tests that the subdomain fixture site was getting reset (GraphQL plugin being deleted, multisite config resetting) -- those have been added to the setup -- but in troubleshooting those it was hypothesized that an incorrect GraphQL endpoint url could have been the issue (it wasn't, multisite not being set up was the issue), or that the environment variables weren't being processed correctly (that wasn't it either, but that was only discovered after breaking the Playwright tests into separate tests -- one for the main site and one for the subdomain). An additional passed environment variable is now supported, however, for GraphQL endpoint, which means that we can eventually remove the handling in the test for different endpoint urls for subdirectory multisite (not included in this PR as it doesn't relate to the subdomain testing).

@jazzsequence jazzsequence requested review from a team as code owners July 31, 2024 16:19
Copy link

Hi from your friendly robot! 🤖 I fixed PHPCS issues with phpcbf on 3e5e15f. Please review the changes.

.github/workflows/playwright.yml Outdated Show resolved Hide resolved
.github/workflows/playwright.yml Outdated Show resolved Hide resolved
@jazzsequence jazzsequence force-pushed the add-missing-subdomain-test-step branch from 5a860dd to dffdcfb Compare July 31, 2024 20:38
we can't check the config if it hasn't finished being updated
we should know it already is multisite so we'll just check that the domains exist
so we can pass different values in
we can use this to fix the subdirectory test, too, but later
this is getting reset, too, for some reason
@jazzsequence
Copy link
Contributor Author

@pwtyler re-requesting review since I've made changes since your ✅

@jazzsequence jazzsequence requested a review from pwtyler July 31, 2024 23:09
@jazzsequence jazzsequence changed the title add copying the changes in the PR to the subdomain tests Get subdomain multisite tests working properly Aug 1, 2024
.github/workflows/playwright.yml Outdated Show resolved Hide resolved
@jazzsequence jazzsequence merged commit 669117e into default Aug 2, 2024
7 checks passed
@jazzsequence jazzsequence deleted the add-missing-subdomain-test-step branch August 2, 2024 14:42
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 this pull request may close these issues.

2 participants