MDL-67668 behat: Share behat_behat functionality with forms

Behat form fields are implemented in a way completely isolated from the
rest of the Behat Context system. Whereas regular step definitions have
access to execute steps, to call `find`, check for JS running, and other
related functionality, the Moodle implementation of a field type does
not have any access to this.

By moving the core functionality of behat_base to a new trait, and the
constants to a new interface, the functionality can also be used in
behat form fields in the same way as elsewhere.
This commit is contained in:
Andrew Nicols
2020-11-23 09:00:46 +08:00
parent a53c5b847e
commit 75801895aa
3 changed files with 1404 additions and 1309 deletions
+5 -1309
View File
File diff suppressed because it is too large Load Diff