Problem/Motivation
Follow-up from #3389668: Split up ConfigTranslationUiTest - we have a whole test class for date formats with one method, and a huge translation ui test that also has a date formats test. The date format tests could live together in one class.
This requires two very minor changes to the test method that gets moved:
1. Don't try to log in - it already happens in the constructor
2. The big ConfigTranslationUi test uses French, the date formats test uses Spanish and German, switched to testing against German, only about three lines change.
I think this will help test performance marginally because the huge test class is still one of the slowest at well over 6 minutes but it also seems like a better place for it to live.
Also there are two site information tests methods, if we move those out to their own class, I think that will save potentially over a minute.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3390692
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
Comment #2
catchComment #3
catchComment #5
catchComment #6
smustgrave commentedFor cc issue.
Comment #7
catchFixed the unused use statements.
Comment #8
smustgrave commentedThanks taking a look at the moves and agree with the placement of the functions. Don't think any test coverage was lost either.
Comment #10
catchA cspell:ignore needed to move too, probably dictionary changes elsewhere uncovered it.
Comment #11
xjmSaving credits.
Comment #12
xjmSee on the MR regarding French vs. German.
I confirmed that this change set is purely moved test code aside from the following changes to that method:
Comment #13
catchReplied on the MR, and pushed a commit changing the comment - it's to make the method compatible with the test class it's being moved to, which only uses German and Spanish at the moment.
Comment #16
xjmReviewed the whole method and looked at the parent test as well. Looks good now.
Committed to 11.x and 10.2.x. Thanks! As a test performance improvement, this is also a good choice for backport to 10.1.x, but it did not cherry-pick cleanly. Setting PTBP for a 10.1.x backport.
Comment #17
xjmFinal patch release of 10.1 is out, so this can go back to "Fixed".