CloudCannon/pagebreak

Add parser based tests to cucumber runner

Closed this issue · 0 comments

Currently all our tests looks for the presence or absence of a specific string in the output file. However the process of parsing and rewriting the file is unstable, i.e attributes are reordered, self-closing tags lose the ending "/", which makes the string match a little fragile. It would be nice if the tests parsed the file instead to check for the correct tag/attributes.