Page MenuHomePhabricator

Add HTML output tests for all HTMLForm fields that support Codex
Open, MediumPublic5 Estimated Story Points

Description

Each HTMLFormField subclass should have a test that acts like a snapshot test:

  • Constructs the field with certain parameters
  • Asserts the correct HTML output for each display format

Let's start by adding these for the fields that have already been migrated to Codex, and then the other fields can have tests added before / at the same time that Codex support is added to them.

(Then later, write tests for other fields)

Event Timeline

Catrope added a project: Design-System-Team.
Catrope moved this task from Inbox to Up Next on the Design-System-Team board.
CCiufo-WMF renamed this task from Add HTML output tests for all fields that support Codex to Add HTML output tests for all HTMLForm fields that support Codex.Mar 26 2024, 7:11 PM
CCiufo-WMF triaged this task as Medium priority.Mon, Apr 1, 1:54 PM
CCiufo-WMF raised the priority of this task from Medium to High.Mon, Apr 1, 4:59 PM

Change #1017907 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] tests: Add test case class for HTMLFormField HTML output tests

https://gerrit.wikimedia.org/r/1017907

Change #1017908 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] tests: Add HTML output tests for HTMLButtonField

https://gerrit.wikimedia.org/r/1017908

Change #1017909 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] tests: Add HTML output tests for HTMLCheckField

https://gerrit.wikimedia.org/r/1017909

Change #1017910 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] tests: Add HTML output tests for HTMLRadioField

https://gerrit.wikimedia.org/r/1017910

Change #1017911 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] tests: Add HTML output tests for HTMLTextField

https://gerrit.wikimedia.org/r/1017911

Change #1017907 merged by jenkins-bot:

[mediawiki/core@master] tests: Add test case class for HTMLFormField HTML output tests

https://gerrit.wikimedia.org/r/1017907

Change #1017909 merged by jenkins-bot:

[mediawiki/core@master] tests: Add HTML output tests for HTMLCheckField

https://gerrit.wikimedia.org/r/1017909

Change #1017908 merged by jenkins-bot:

[mediawiki/core@master] tests: Add HTML output tests for HTMLButtonField

https://gerrit.wikimedia.org/r/1017908

Change #1017910 merged by jenkins-bot:

[mediawiki/core@master] tests: Add HTML output tests for HTMLRadioField

https://gerrit.wikimedia.org/r/1017910

CCiufo-WMF lowered the priority of this task from High to Medium.