Problem/Motivation

This is part of deprecating Claro.

Steps to reproduce

Proposed resolution

Change tests to use the new Admin theme, or if appropriate to use test_theme.
Includes FunctionalTests, FunctionalJavascriptTests and Nightwatch.

This excludes

  1. tests of the installer, those are in #3622220: Use Admin theme in installer related tests
  2. tests of recipes, those are in #3582101: Make Admin the default theme in profiles and recipes

Remaining tasks

Fix failing tests

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3582098

Command icon 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:

Comments

quietone created an issue. See original summary.

quietone’s picture

All the functional tests relating to testing the install fails. And since the install theme is being changed to Admin over in #3618971: Use Admin theme in installer, I pulled all those tests out.

quietone’s picture

Issue summary: View changes
Status: Active » Needs work
quietone’s picture

Issue summary: View changes
quietone’s picture

Issue summary: View changes

smustgrave made their first commit to this issue’s fork.

smustgrave’s picture

quietone’s picture

Issue summary: View changes
quietone’s picture

Status: Needs work » Needs review

Reviewed this and made sure that tests being done elsewhere were removed form this issue, and removed duplicate Nightwatch tests.

Now that tests are passing, setting to needs review.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Changes here look good. This is really coming together nicely way to go @quietone!

  • catch committed 24f6e64c on main
    task: #3582098 Update core/tests that use Claro to Admin
    
    By: quietone
    
catch’s picture

Version: main » 11.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed/pushed to main, thanks!

Moving to 11.x for backport.

quietone’s picture

In 11.x there was a failing test, core/tests/Drupal/Tests/Core/Test/WorkAllocatorTest.php. It failed because the fixture, core/tests/fixtures/test_runner/work_allocator/complex_in.json, reference ClaroBlockFilterTest,php instead of AdminBlockFilterTest.php. That is fixed on this 11.x backport. However, it is not fixed in main, nor do I looked into why WorkAllocatorTest.php does not fail on main.

quietone’s picture

Status: Patch (to be ported) » Needs review

11.x MR available for review.

this will need also need work as explained in #15.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

So seems #3588584: run-tests.sh - move suite determination from WorkAllocator to PhpUnitTestDiscovery was only reverted on 11.x which has a line assert(class_exists($class), "$class does not exist"); in 11.x that doesn't exist in main. So the 11.x appears to be a good backport but probably need another MR for main to fix that json.

smustgrave’s picture

Opened an MR for main with just the json

  • catch committed d4f1a1e3 on 11.x
    task: #3582098 Update core/tests that use Claro to Admin
    
    By: quietone...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed the backport to 11.x and the quick fix to main, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • catch committed 1855672c on main
    task: #3582098 Update core/tests that use Claro to Admin
    
    By: quietone...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.