Test HTML output #4

Open
opened 2026-02-09 17:55:51 -07:00 by msyds · 0 comments
Owner

Testing such static HTML is a bit tricky. I think the best thing to do is scan the output to ensure certain data points are output at all. E.g., knowing that a document's title is "My Document," we should expect to find an <h1> containing the string "My Document" somewhere. Generally improving the test suite is also an excuse to try out Gitea's actions lol.

Testing such static HTML is a bit tricky. I think the best thing to do is scan the output to ensure certain data points are output at all. E.g., knowing that a document's title is "My Document," we should expect to find an `<h1>` containing the string "My Document" _somewhere_. Generally improving the test suite is also an excuse to try out Gitea's actions lol.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: msyds/net-deertopia#4