Allow execution of core and plugin specific JS tests only #16345
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
eg by executing
http://domain/tests/javascript/?plugin=HeatmapSessionRecording
. In the past I always patched theindex.php
code manually but figured it be easier to have an option for this. That's because some plugin tests might not be compatible with each other as every JS adds different HTML code to the test. Eg when it runs Form Analytics, Heatmaps, Ab Tests, etc all in one go then the tests might not pass but they pass when executed independently. It doesn't fail because of any JS logic but because of the extra HTML they add to the file. It's possible this could be fixed but might be a bit of work. Will see first if I can get them to pass altogether.Nonetheless sometimes it might be useful to have this opportunity to only add specific tests to the test page. It lets you eg execute tests just like Travis would do (when it runs the tests only for one plugin but not all plugins)