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
See #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase).
Test Drupal\history\Tests\Views\HistoryTimestampTest
was not converted in #2795049: Convert web tests to browser tests for history module
Proposed resolution
Convert it
Comment | File | Size | Author |
---|---|---|---|
#15 | 2898437-history-ktb-15.patch | 2.72 KB | andypost |
#15 | interdiff-2898437-13.patch | 929 bytes | andypost |
#13 | 2898437-history-ktb-12.patch | 2.71 KB | andypost |
Comments
Comment #2
andypostHere it is
Comment #3
dawehner@andypost
If you look at the patch we could also convert it to a kernel test, in which case, we maybe even have to change less. Do you think this would be a good change?
Comment #4
andypost@dawehner thanx! good idea & test could be faster
Comment #5
andypostNo, this require to add setup schemas & create entities manually
So this is a minimal changes(
But if it makes sense I could convert
Comment #6
andypostHere it is, also fixed "@see" to point actual view plugins
Comment #7
Lendudekerneltest++
cold => could. And any idea why that is?
The rest looks great.
Comment #8
andypostElaborated comment, all other templates has no
span
wrapper for marker but the test using following xpathComment #9
dawehnerTo be honest I don't understand why we need the filter module. What is the reason for that, I'm just curious?
Comment #11
tacituseu CreditAttribution: tacituseu commentedSegmentation fault (core dumped)
Comment #12
Lendude#9 we don't, just ran it without and it passes fine:
Time: 17.18 seconds, Memory: 6.00MB
OK (1 test, 8 assertions)
Process finished with exit code 0
I would go for something like: Use classy theme because its marker is wrapped in a span so it can be easily targeted with xpath.
Comment #13
andypostI called retest, fail unrelated
@dawehner cleaned-up that, looks that no longer needed for node module (node -> text -> filter)
Comment #15
andypostFixed code comment suggestion from #12
PS: sadly interdiff with ".patch" extension
Comment #16
dawehnerI think we are good now. Great work @andypost!
Comment #21
catchCommitted/pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!
Comment #22
catch