Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Drupal\Tests\views_ui\FunctionalJavascript\ViewsListingTest
was designed to check the filtering functionality in admin/structure/views
. The problem is that all the numbers on that test are hardcoded and adding new views to drupal core (#1823450: [Meta] Convert core listings to Views) always require to adjust (and understand what needs to be modified) in that test.
Proposed resolution
Move the numbers to variables and do some simple calculations to replace the hardcoded numbers.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 2871400-2.patch | 2.72 KB | dagmar |
Comments
Comment #2
dagmarSomething like this.
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
dawehnerNice little improvement. This improves readabilty!
Comment #5
alexpottCommitted and pushed 581f959 to 8.4.x and bca5e6d to 8.3.x. Thanks!
Backported to 8.3.x because this is a test only change.