diff --git a/core/modules/tracker/tests/src/Functional/TrackerTest.php b/core/modules/tracker/tests/src/Functional/TrackerTest.php
index b3515564535a67cc2648e84f4f1872edc46dba86..c8d9784cb2e34dd67f5eba325377ba221ecac81b 100644
--- a/core/modules/tracker/tests/src/Functional/TrackerTest.php
+++ b/core/modules/tracker/tests/src/Functional/TrackerTest.php
@@ -393,6 +393,9 @@ public function testTrackerCronIndexing() {
       'status' => 0,
     ]);
 
+    $this->drupalGet('activity');
+    $this->assertSession()->responseNotContains($unpublished->label());
+
     // Start indexing backwards from node 4.
     \Drupal::state()->set('tracker.index_nid', 4);