diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php
index c80ff3335147afa7ba854dcf4119ad60f89aa2d9..657cd98ca7b009030651eb2eeb23a39d6f45fd33 100644
--- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php
+++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php
@@ -100,8 +100,6 @@ public function testFragmentLink() {
 
     $this->drupalGet('node/add/page');
 
-    $session->getPage();
-
     // Add a bottom margin to the title field to be sure the body field is not
     // visible.
     $session->executeScript("document.getElementById('edit-title-0-value').style.marginBottom = window.innerHeight*2 +'px';");