Repository navigation
Settings page regression tests (2/6): Theme and Copy tabs - #134
Merged
Merged
Conversation
Theme: colour defaults, each colour reaching the form's styles (primary on the buttons), custom CSS applied, and Theme settings in the legacy Carbon Fields format. Copy: every setting's default or fallback and where it shows: details, plan and bank-details steps, the confirmation step (organisation details and joining verb), sidebar heading and stage label; plus legacy data. Known problems, as test.fixme: Home Address Copy never shows (JOIN-162), the day-of-month copy is unused (JOIN-163), the organisation details are marked required but not enforced (JOIN-164). Also: colour and rich text helpers on JoinSettingsPage, getSettings to read many settings in one WP-CLI call, an e2e-custom-fields seed page, and openJoinForm now starts the form afresh (it remembers its step in session storage and the history entry). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BL2bFrTk84JMy3CPAsCTV9
This was referenced Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
conatus
commented
Oct 24, 2026
- The Currency Selection Copy test used a page slug that only worked via WordPress's 404 guessing; the join form page constants now live in support.ts and multi-currency-plans.spec.ts shares them. - JoinSettingsPage matches labels exactly, escaping pattern characters, so labels like '"How did you hear about us?" heading' work. - Every Copy setting's default is checked, and every rich text setting is read back through Settings::get, not only checked on the form. - The legacy Copy test checks every row it loads; loadLegacySettings returns them. - Gray Color and Background Color are checked on the elements that use them, in the legacy test too. - The join form's REST stubs are registered once per page, and the join request clickJoin holds open is let go after each test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BL2bFrTk84JMy3CPAsCTV9
Brings in #133 as merged, including its follow-up review changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BL2bFrTk84JMy3CPAsCTV9
conatus
changed the base branch from
admin-interface-end-to-end-tests
to
master
November 10, 2026 17:06
- The blank sidebar heading and stage label test now checks they are saved blank and that the form shows the defaults, not only the form's settings. - The sidebar test checks before and after on the same page and the same elements, at the plan step. - Join form page constants live in helpers.ts, so general specs no longer import from the settings support module. - One continueToPlans() helper for Continue to the plan step. - The About You test reads its settings in one WP-CLI call. - One exactly() helper, with flags, and field() escapes labels the same way. - The seed lists the custom fields page with the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second of six settings page regression test PRs. #133 (foundation + Features) is merged, so this now targets
master.Theme (
theme.spec.ts)#007bff,#dfdcda,#f4f1ee) apply before anything is saved.Copy (
copy.spec.ts)Every setting's default (or built-in fallback) and where it shows:
Known problems, filed and kept as
test.fixmeSupporting changes
JoinSettingsPagegainssetColorandsetRichText. Pressing Enter in the colour picker submits the whole form, so the helper avoids it.getSettingsreads many settings in one WP-CLI call.e2e-custom-fields, with one custom field.openJoinFormnow starts the form afresh. It remembers its step in session storage and in the history entry, which reopening the same URL keeps.Results
Full E2E suite in a cloud session: 142 passed, 5 skipped (JOIN-158, JOIN-161 to JOIN-164), 9.5 minutes.
Generated by Claude Code