diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
index b6422ce90b5c18bb18439d55585bd325c3d1d49c..6d9571e1501314cd4126c605f66662cb5f61303e 100644
--- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
+++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
@@ -44,7 +44,7 @@ public function installThemeThatTriggersWarning($theme) {
   public function testWarningFilterUi($theme, $expected_warning): void {
     $page = $this->getSession()->getPage();
     $assert_session = $this->assertSession();
-    $this->addNewTextFormat($page, $assert_session);
+    $this->addNewTextFormat();
     $this->drupalGet('admin/config/content/formats/manage/ckeditor5');
 
     $assert_session->pageTextNotContains($expected_warning);