Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
node system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Aug 2018 at 23:32 UTC
Updated:
2 Oct 2018 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mile23#2970017: Fix "Drupal\system\Tests\Menu\AssertBreadcrumbTrait is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\system\Functional\Menu\AssertBreadcrumbTrait" is postponed on this issue.
Comment #3
mile23Converts
NodeTypeTest. Still needs work for the other tests.Needed some assertSession() love because it turns out assertNoRaw() isn't a drop-in replacement.
Comment #4
lendude@Mile23 thanks for getting the ball rolling here, looks good so far. NW for the rest!
Comment #5
lendudeSome progress.
NodeContextualLinksTest::testNodeContextualLinks isn't actually testing anything at the moment, the actual assertions are all commented out, so we can just take that out and not lose any coverage. We do need a followup to make sure it gets some proper javascript coverage.
Comment #6
dawehnerHere is a follow up #2998393: Add javascript test for NodeContextualLinksTest:: testNodeContextualLinks
The entire contextual links test is weird, not just the one without any assertions.
Comment #7
mile23#5 still leaves us with two WTB tests:
Drupal\node\Tests\NodeRevisionTestDrupal\node\Tests\PagePreviewTestComment #8
lendudeThis takes care of the remaining tests.
The ajax use is PagePreviewTest was pointless and I've replaced it with normal button clicks.
I've split the contextual links stuff from NodeRevisionTest into a WebDriverTest
Comment #10
lendudeBleh, that was against 8.6.x, now against 8.7.x
Comment #11
borisson_I don't see any nits to pick, so moving this to RTBC.
Comment #12
alexpottCommitted 15ca693 and pushed to 8.7.x. Thanks!
Comment #14
alexpottComment #16
alexpottThe patch does not apply to 8.6.x but it does cherry-pick which means it was patch context conflict and not change conflict so I've gone ahead and backported to 8.6.x to keep the tests aligned.