diff --git a/core/modules/image/src/Form/ImageEffectAddForm.php b/core/modules/image/src/Form/ImageEffectAddForm.php
index 76f164caf6ca8583a7f83e32ea44e5c907c72b60..42411ef4cbe5a977cd0f275604955e1d8b3e67df 100644
--- a/core/modules/image/src/Form/ImageEffectAddForm.php
+++ b/core/modules/image/src/Form/ImageEffectAddForm.php
@@ -46,7 +46,10 @@ public static function create(ContainerInterface $container) {
   public function buildForm(array $form, FormStateInterface $form_state, ImageStyleInterface $image_style = NULL, $image_effect = NULL) {
     $form = parent::buildForm($form, $form_state, $image_style, $image_effect);
 
-    $form['#title'] = $this->t('Add %label effect', ['%label' => $this->imageEffect->label()]);
+    $form['#title'] = $this->t('Add %label effect to style %style', [
+      '%label' => $this->imageEffect->label(),
+      '%style' => $image_style->label(),
+    ]);
     $form['actions']['submit']['#value'] = $this->t('Add effect');
 
     return $form;
diff --git a/core/modules/image/src/Form/ImageEffectEditForm.php b/core/modules/image/src/Form/ImageEffectEditForm.php
index 0dd362c70cdd57ea3c31647c561efbc431b6f622..158e9a109b3356dc8cf0b0afb95dde9249124133 100644
--- a/core/modules/image/src/Form/ImageEffectEditForm.php
+++ b/core/modules/image/src/Form/ImageEffectEditForm.php
@@ -18,7 +18,10 @@ class ImageEffectEditForm extends ImageEffectFormBase {
   public function buildForm(array $form, FormStateInterface $form_state, ImageStyleInterface $image_style = NULL, $image_effect = NULL) {
     $form = parent::buildForm($form, $form_state, $image_style, $image_effect);
 
-    $form['#title'] = $this->t('Edit %label effect', ['%label' => $this->imageEffect->label()]);
+    $form['#title'] = $this->t('Edit %label effect on style %style', [
+      '%label' => $this->imageEffect->label(),
+      '%style' => $image_style->label(),
+    ]);
     $form['actions']['submit']['#value'] = $this->t('Update effect');
 
     return $form;
diff --git a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
index 0f3fa8a910d0ada81225fc16b2caacd3efdadf4c..e38cf39e5cf494a9d4adfc383a3c992e3da99c1a 100644
--- a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
+++ b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
@@ -140,6 +140,8 @@ public function testStyle() {
       $this->drupalGet($style_path);
       $this->submitForm(['new' => $effect], 'Add');
       if (!empty($edit)) {
+        $effect_label = \Drupal::service('plugin.manager.image.effect')->createInstance($effect)->label();
+        $this->assertSession()->pageTextContains("Add {$effect_label} effect to style {$style_label}");
         $this->submitForm($edit_data, 'Add effect');
       }
     }
@@ -391,6 +393,7 @@ public function testEditEffect() {
 
     // There should normally be only one edit link on this page initially.
     $this->clickLink('Edit');
+    $this->assertSession()->pageTextContains("Edit Scale and crop effect on style Test style effect edit");
     $this->submitForm(['data[width]' => '360', 'data[height]' => '240'], 'Update effect');
     $this->assertSession()->pageTextContains('Scale and crop 360×240');
 
@@ -405,6 +408,7 @@ public function testEditEffect() {
 
     // Edit the scale effect that was just added.
     $this->clickLink('Edit');
+    $this->assertSession()->pageTextContains("Edit Scale effect on style Test style scale edit scale");
     $this->submitForm(['data[width]' => '24', 'data[height]' => '19'], 'Update effect');
 
     // Add another scale effect and make sure both exist. Click through from