Problem/Motivation
WebDriverTestBase is a FunctionalJavascript test.
The namespace of tests should be \Drupal\Tests\$extension\$suite_type and tests must be within a tests/src/$suite_type directory.
PHPUnit file structure, namespace, and required metadata
PHPUnit-based: Generally, the other suites must be within a tests/src/$suite_type directory. These tests will have a namespace of \Drupal\Tests\$extension\$suite_type. Note that there are exceptions to this naming scheme, illustrated below.
Proposed resolution
Change the namespace of RestUITest to \Drupal\Tests\restui\FunctionalJavascript and change directory to tests/src/FunctionalJavascript.
Comments
Comment #2
krzysztof domańskiComment #3
krzysztof domańskiComment #4
wim leers👍🙏
Comment #6
clemens.tolboomTNX!
Comment #7
clemens.tolboomHmmm ... got the commit credits wrong. @Wim Leers sorry :-/
Comment #8
krzysztof domańskiThe name of the directory should be changed to FunctionalJavascript. It looks like the test was duplicated by mistake.
tests/src/Functional/RestUITest.phptests/src/FunctionalJavascript/RestUITest.phphttps://git.drupalcode.org/project/restui/commit/018ed4b
Comment #10
clemens.tolboomI forgot to rm the moved file. Somehow git apply did not 'moved it'.
Comment #11
wim leers#7: don't worry about me :)
#10:
git apply -3v PATCHFTW :)