From c8151ca19b8c11cb990774ef415bfe59c62c6dd0 Mon Sep 17 00:00:00 2001
From: Rajab Natshah <rajabn@gmail.com>
Date: Sun, 15 Apr 2018 18:54:19 +0300
Subject: [PATCH] Issue #2959483: Changed Functional Automated Acceptance tests
 for the name of filed media image i [Varbase Profile] to work with [Media]
 Drupal core module.

---
 ...4-image-media-and-their-usage-list-page-for-admins.feature | 4 ++--
 ...lider-to-entityqueue-using-entityqueue-form-widget.feature | 4 ++--
 .../05-05-embed-existing-media-image-library.feature          | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/features/varbase/step2-apply-tests/03-admin-management/03-04-image-media-and-their-usage-list-page-for-admins.feature b/tests/features/varbase/step2-apply-tests/03-admin-management/03-04-image-media-and-their-usage-list-page-for-admins.feature
index 54b2c7b4..d6e006c0 100644
--- a/tests/features/varbase/step2-apply-tests/03-admin-management/03-04-image-media-and-their-usage-list-page-for-admins.feature
+++ b/tests/features/varbase/step2-apply-tests/03-admin-management/03-04-image-media-and-their-usage-list-page-for-admins.feature
@@ -38,7 +38,7 @@ So that I will be able to manage files, see where they have been used in content
      When I go to "admin/content/media"
       And I wait
      Then I should see "Add media"
-     When I fill in "Flag Earth" for "name[0][value]"
+     When I fill in "Flag Earth" for "edit-name"
       And I press the "Apply" button
       And I wait
      Then I should see "Flag Earth"
@@ -58,7 +58,7 @@ So that I will be able to manage files, see where they have been used in content
      When I go to "admin/content/media"
       And I wait
      Then I should see "Add media"
-     When I fill in "Flag Earth after edit" for "name[0][value]"
+     When I fill in "Flag Earth after edit" for "edit-name"
       And I press the "Apply" button
       And I wait
       And I wait
diff --git a/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature b/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature
index fc50779e..34cf8722 100644
--- a/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature
+++ b/tests/features/varbase/step2-apply-tests/05-content-management/05-03-add-hero-slider-to-entityqueue-using-entityqueue-form-widget.feature
@@ -48,7 +48,7 @@ I want to be able to add and remove entities to any allowed entityqueue.
       And I wait for AJAX to finish
      Then the image media browser should be open
      When I switch to iframe "entity_browser_iframe_heroslider_media_browser"
-      And I fill in "Flag Earth" for "Search"
+      And I fill in "Flag Earth" for "edit-name"
       And I press the "Search" button
       And wait max of 5s
      Then I should see image with the "Flag Earth all earth in space" title text
@@ -80,7 +80,7 @@ I want to be able to add and remove entities to any allowed entityqueue.
       And I wait for AJAX to finish
      Then the image media browser should be open
      When I switch to iframe "entity_browser_iframe_heroslider_media_browser"
-      And I fill in "Flag Earth" for "Search"
+      And I fill in "Flag Earth" for "edit-name"
       And I press the "Search" button
       And wait max of 5s
      Then I should see image with the "Flag Earth all earth in space" title text
diff --git a/tests/features/varbase/step2-apply-tests/05-content-management/05-05-embed-existing-media-image-library.feature b/tests/features/varbase/step2-apply-tests/05-content-management/05-05-embed-existing-media-image-library.feature
index a4a92263..dd117a61 100644
--- a/tests/features/varbase/step2-apply-tests/05-content-management/05-05-embed-existing-media-image-library.feature
+++ b/tests/features/varbase/step2-apply-tests/05-content-management/05-05-embed-existing-media-image-library.feature
@@ -63,7 +63,7 @@ So that it will show up under that rich text field without having to upload the
       And I wait for AJAX to finish
      Then the editor media browser should be open
      When I switch to iframe "entity_browser_iframe_editor_media_browser"
-      And I fill in "Embed Flag Earth" for "Search keywords"
+      And I fill in "Embed Flag Earth" for "edit-name"
       And I press the "Search" button
       And I wait for AJAX to finish
      Then I should see image with the "Embed Flag Earth all earth in space" title text
-- 
GitLab