BirkbeckCTP / typesetting

A plugin that replaced the Production and Proofing stages with an alternative process.
GNU Affero General Public License v3.0
0 stars 2 forks source link

Proofreading requires less guesswork because the XML preview is more accurate #185

Closed joemull closed 1 year ago

joemull commented 1 year ago

Fixes #148

This branch creates a test for each theme that uses BeautifulSoup to compare parts of the HTML response from the typesetting_preview_galley url to corresponding parts from the article_view url. This is to catch metadata discrepancies that shouldn't be there when someone is trying to predict how the article will look when published.

The corresponding themes in BirkbeckCTP/janeway have been modified in https://github.com/BirkbeckCTP/janeway/pull/3471 with classes proofing-test-include and proofing-test-exclude to create DOM trees covering the relevant metadata. As a result, these new tests likely won't pass until they are run with the new templates.

I'm not sure what that means for CI testing. Thoughts about how to proceed?