-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.16, 4.3.10, 4.4.6, 4.5.2
To reproduce:
- Create child theme of boost called boostchild
- Add behat override class for behat_blocks - behat_theme_boostchild_behat_blocks
- Create child theme of boostchild called boostgrandchild
- Initialise behat for all themes -
php admin/tool/behat/cli/init.php --add-core-features-to-theme
- Run tests for blocks/tests/behat/manage_blocks.feature
- Error:
`behat_blocks` context is not found in the suite environment. Have you registered it?
On inspection of the behat.yml file, the parent contexts are included as expected. However when running tests, only the current suite is checked for overriding classes and not the parent.
behat_theme_boostgrandchild_behat_blocks does not exist and behat_blocks is not in the list of contexts because it is overridden by behat_theme_boostchild_behat_blocks
- has been marked as being related by
-
MDL-84594 PR only: MDL-84448 - Behat tests are not using grandparent contexts
-
- Closed
-