Problem/Motivation

Because of #3083275: [meta] Update tests that rely on Classy to not rely on it anymore and Classy being deprecated in Drupal 9 + removed in Drupal 10,: Tests that aren't specifically testing Classy yet declare $defaultTheme = 'classy'; should be refactored to use Stark as the default theme instead.

Proposed resolution

Change all tests in this module to use Stark as the default theme, and refactor the tests where needed so they continue to function properly.

Comments

danflanagan8 created an issue. See original summary.

danflanagan8’s picture

Assigned: danflanagan8 » Unassigned
Status: Active » Needs review
StatusFileSize
new8.98 KB

This one got created a little late alphabetically because it's one of the modules that was "soft blocked" by the issue to create the new WebAssert methods for status messages. That new method is used to decouple from classy in ContentTranslationSettingsTest. But I also went ahead and refactored a number of other assertions to use the new methods.

This one is pretty small and the review should be easy!

danflanagan8’s picture

StatusFileSize
new10.03 KB
new1.05 KB

I just decided to do a search for tests that used stark and also contained the string "messages--" in an attempt to find bogus status message assertions and it turns out there was one in this module!

So here's an updated patch that fixes what is truly a bug in a test already using stark, but making a negative assertion that relies on classy markup.

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Makes sense to me

alexpott’s picture

Version: 9.4.x-dev » 9.3.x-dev

Committed and pushed 22c29deda4 to 10.0.x and 0a5c3527fb to 9.5.x and 07db513b77 to 9.4.x. Thanks!

  • alexpott committed 22c29de on 10.0.x
    Issue #3272558 by danflanagan8: Content Translation tests should not...

  • alexpott committed 0a5c352 on 9.5.x
    Issue #3272558 by danflanagan8: Content Translation tests should not...

  • alexpott committed 07db513 on 9.4.x
    Issue #3272558 by danflanagan8: Content Translation tests should not...
alexpott’s picture

Going to test on 9.3.x and backport there if green.

alexpott’s picture

Version: 9.3.x-dev » 9.4.x-dev
Status: Reviewed & tested by the community » Fixed

Glad I didn't commit this to 9.3.x

Status: Fixed » Closed (fixed)

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