Problem/Motivation
Start moving tests to Olivero so the theme can be deprecated.
Steps to reproduce
git grep -lwi "'olivero'" | grep -v core/themes/olivero/ | grep -v core/assets | grep -v phpstan-baseline | grep -v MAINTAINERS | grep -i test
Proposed resolution
This is for tests that are a simple change of directory.
With the changes in the MR there are still 51 tests that use the word 'olivero'. They will be done elsewhere
Includes moving TestSiteOliveroInstallTestScript.php to Olivero which then required changing the setup path in the nightwatch tests.
Remaining tasks
Review
Commit
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3614949
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3614949-11-x
changes, plain diff MR !16711
- 3614949-move-nightwatch-tests
changes, plain diff MR !16554
Comments
Comment #3
quietone commentedComment #4
quietone commentedComment #5
smustgrave commentedCould the summary be cleaned up slightly? The title says tests so I assume all tests. The problem mentions tests in general too, but proposed solution mentions just nightwatch just trying to determine scope.
But looking in the nightwatch folder the nightwatch.config.js uses Olivero as it's defaultTheme, if this is ticket is just nightwatch can we update that value to something else?
Comment #6
quietone commentedThis is not just for nightwatch tests but it is only for tests. Files like nightwatch.config.js are excluded.
Comment #7
smustgrave commentedNot 100% why the config is excluded. But it’s a good chunk so it’s something
Comment #10
catchVery straightforward. Committed/pushed to main and 11.x, thanks!
Comment #12
quietone commentedThis is causing test failures on 11.x, on core/tests/Drupal/KernelTests/Core/Test/PhpUnitApiGetTestClassesTest.php with messages like
Comment #15
catchPushed a revert. This means the namespace is wrong in main too so reverted from there as well.
Comment #18
quietone commentedThe name spaces are fixed and there is an MR for 11.x. All tests are passing.
edit: correct typos
Comment #19
quietone commentedI added to this moving TestSiteOliveroInstallTestScript.php to Olivero which then required changing the setup path in the nightwatch tests.
Comment #20
quietone commentedThe 11.x tests failures should be fixed by #2672340: user_user_role_insert should not exist
Comment #21
smustgrave commentedLets try this again...
Comment #23
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #24
catchCommitted/pushed to main and 11.x, thanks!