Hi! Sort of. Once you have the HTML, you can assert various HTML matches and non-matches using Hamcrest extensions, for example: https://phabricator.wikimedia.org/diffusion/EFLI/browse/master/tests/phpunit/Html/ImportPreviewPageTest.php$113
Here's the source to the pattern matching code: https://github.com/wmde/hamcrest-html-matchers These can slow down a test significantly, beware of visiting every DOM subtree! -Adam On Wed, Oct 2, 2019 at 7:54 AM Jeroen De Dauw <jeroended...@gmail.com> wrote: > Hey, > > Does MediaWiki have something similar to Symfony's WebTestCase? ( > https://symfony.com/doc/current/testing.html#functional-tests) > > I want to write some integration tests in the form of "does web page > /wiki/MyWikiPage contain HTML snippet XYZ". > > Cheers > > -- > Jeroen De Dauw | www.EntropyWins.wtf <https://EntropyWins.wtf> | > www.Professional.Wiki <https://Professional.Wiki> > Entrepreneur | Software Crafter | Speaker | Open Souce and Wikimedia > contributor > ~=[,,_,,]:3 > _______________________________________________ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l -- Adam Wight - Developer - Wikimedia Deutschland e.V. - https://wikimedia.de _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l