From 420bfae308bae351adb44e444cc48fe834b119db Mon Sep 17 00:00:00 2001 From: Christian Fritsch Date: Wed, 8 Jan 2025 14:33:43 +0100 Subject: [PATCH] Try --- tests/src/FunctionalJavascript/MediaImageModifyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/FunctionalJavascript/MediaImageModifyTest.php b/tests/src/FunctionalJavascript/MediaImageModifyTest.php index bfdad2ec5..c61dbab84 100644 --- a/tests/src/FunctionalJavascript/MediaImageModifyTest.php +++ b/tests/src/FunctionalJavascript/MediaImageModifyTest.php @@ -105,7 +105,7 @@ public function testRemoveAdd(): void { $this->assertSession()->assertWaitOnAjaxRequest(); $this->assertNotEmpty($this->assertSession()->waitForElementVisible('css', '#drupal-modal')); $this->assertSession()->fieldNotExists('also_delete_file'); - $this->assertSession()->pageTextContains('This action cannot be undone.The file attached to this media is owned by admin so will be retained.'); + $this->assertSession()->pageTextContains('The file attached to this media is owned by admin so will be retained.'); Role::load(static::$defaultUserRole)->grantPermission('delete any file')->save(); $this->getSession()->reload(); $this->getSession()->getPage()->find('css', '[data-drupal-selector="edit-gin-sticky-actions"] .gin-more-actions__trigger')->click();