You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Given /^I log in as "(?P<username_string>(?:[^"]|\\")*)"$/
If I remove the named capturing group, the extension can parse it:
@Given /^I log in as "(?:[^"]|\\")*"$/
This is not the only problem with parsing steps in Moodle, I noticed that some other steps are also reported as missing. Also often "Go to definition" brings to a random place in behat definitions files. But I think this error is the most prominent one
The text was updated successfully, but these errors were encountered:
Describe the bug
I tried to use this extension on Moodle features.
Moodle uses named capturing groups in the majority of step definitions.
To Reproduce
Steps to reproduce the behavior:
"cucumberautocomplete.steps": ["**/behat_*.php"]
Screenshots
Cucumberautocomplete part of VSCode settings:
Step definition:
Here is an example of the step definition that can not be processed
https://github.com/moodle/moodle/blob/master/auth/tests/behat/behat_auth.php#L44
If I remove the named capturing group, the extension can parse it:
This is not the only problem with parsing steps in Moodle, I noticed that some other steps are also reported as missing. Also often "Go to definition" brings to a random place in behat definitions files. But I think this error is the most prominent one
The text was updated successfully, but these errors were encountered: