Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently the features_ui sub-module is using legacy WebTests. It would be better to convert these to newer FunctionalTests. I think it's a fair amount of work and would love help from any test experts out there.
Comment | File | Size | Author |
---|---|---|---|
#5 | features-convert_functional_tests-2824106-5.patch | 40.1 KB | Grimreaper |
Comments
Comment #2
mpotter CreditAttribution: mpotter at Phase2 commentedComment #3
mpotter CreditAttribution: mpotter at Phase2 commentedComment #4
GrimreaperHello,
Here is an attempt to convert the tests.
There are two remaining problems:
- I can't find the replacement for $this->drupalPostAjaxForm in modules/features_ui/tests/src/Functional/FeaturesUITest.php
- in modules/features_ui/tests/src/Functional/FeaturesCreateUITest.php near line 116:
I have commented the 'excluded' because I can't reproduce this behavior even outside the test.
Also thanks to @woprrr and @DuaelFr for their help.
Thanks for any help.
Comment #5
GrimreaperI forgot to change the test group because I changed its to have only one test triggered.
About the drupalPostAjaxForm, I found that drupalPostForm or submitForm should work but as there is no submit button when changing only the bundle select list it does not work.
Comment #6
nedjoThanks for digging into this.
This may be related to #2860993: 'excluded' property not set in *.features.yml.