From 39d3e230b1d6df45971f409015c54b05098f914c Mon Sep 17 00:00:00 2001 From: jkindly Date: Wed, 3 Jul 2024 12:04:23 +0200 Subject: [PATCH] OP-325: Behat fix --- features/admin/adding_media.feature | 2 +- .../templates/examples/media_custom_template.html.twig | 2 +- tests/Behat/Context/Ui/Admin/MediaContext.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/admin/adding_media.feature b/features/admin/adding_media.feature index 4b518c67f..d5463584d 100644 --- a/features/admin/adding_media.feature +++ b/features/admin/adding_media.feature @@ -13,7 +13,7 @@ Feature: Adding new media When I go to the create media page And I fill the code with "image" And I fill the name with "Image" - And I fill the content with "Main image" + And I fill the link content with "Main image" And I upload the "aston_martin_db_11.jpg" image And I add it Then I should be notified that new media has been created diff --git a/tests/Application/templates/examples/media_custom_template.html.twig b/tests/Application/templates/examples/media_custom_template.html.twig index e822f5799..44666f2e8 100644 --- a/tests/Application/templates/examples/media_custom_template.html.twig +++ b/tests/Application/templates/examples/media_custom_template.html.twig @@ -1,4 +1,4 @@ -

{{ media.translation.name }}

+

{{ media.name }}

{{ media.translation.alt }}resolveCurrentPage()->fillContent($content); + $this->resolveCurrentPage()->fillField('Link content', $content); } /**