Test HTML output #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.