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.
We need to start covering existing javascript functionality within Views with test, see #2752931: [meta] Implement Javascript testing for Views and the Views UI.
This is about adding test coverage to the basic search functionality in the Views listing.
Search for some terms and see if the right Views are visible.
Comment | File | Size | Author |
---|---|---|---|
#10 | views_listing_test-2753791-10.patch | 4.56 KB | Lendude |
#10 | interdiff-2753791-10.patch | 972 bytes | Lendude |
#7 | views_listing_test-2753791-7.patch | 4.56 KB | Lendude |
#7 | interdiff-2753791-4-7.txt | 2.22 KB | Lendude |
#4 | views_listing_test-2753791-4.patch | 3.01 KB | Lendude |
Comments
Comment #2
LendudeFirst stab at it.
Comment #3
LendudeComment #4
LendudeSelf review.
Comment #5
LendudeComment #6
dawehnerJust as a suggestion: we could test the disable/enable functionality and the ajax behaviour on that.
Nice tests!
Comment #7
LendudeYeah testing the enabled/disabled functionality would be a great addition, so here we go!
Comment #8
dawehnerNice! One step forward in time!
Comment #9
DuaelFrHi, thanks for your amazing work on these issues and your valuable advices.
I found two little tidbits here. The test is passing because the button and link are currently designed to totally fill their container. If, someday, we chose to change the style of these elements, tests could fail strangely.
We have to be really careful about the things we click on ;)
We should target the
<button>
here.We should target the
<a>
here.Comment #10
Lendude@DuaelFR thanks for the feedback! Updated per #9
Comment #12
dawehnerThis is a really good point. We should keep that in mind when we review patches!
Comment #13
DuaelFrJust for the record, this issue is blocking #1848940: When enabling or disabling a View, don't move the cursor to the top of the page (because of the tests).
Comment #15
Lendudeunrelated fails
Comment #17
Lendudeand more unrelated fails.
Comment #19
LendudeUnrelated fails, back to RTBC
Comment #21
Lendudeunrelated fails
Comment #22
alexpottCommitted and pushed 9cae523573991a87319abfa83f7ee6db9ee9f5c7 to 8.2.x and 69836b2 to 8.1.x. Thanks!
Comment #25
dawehnerLendude++