Mercurial > hg > isophonics-drupal-site
diff core/modules/image/src/Tests/ImageAdminStylesTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/image/src/Tests/ImageAdminStylesTest.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/image/src/Tests/ImageAdminStylesTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -422,9 +422,20 @@ // Edit the scale effect that was just added. $this->clickLink(t('Edit')); $this->drupalPostForm(NULL, ['data[width]' => '24', 'data[height]' => '19'], t('Update effect')); + + // Add another scale effect and make sure both exist. Click through from + // the overview to make sure that it is possible to add new effect then. + $this->drupalGet('admin/config/media/image-styles'); + $rows = $this->xpath('//table/tbody/tr'); + $i = 0; + foreach ($rows as $row) { + if (((string) $row->td[0]) === 'Test style scale edit scale') { + $this->clickLink('Edit', $i); + break; + } + $i++; + } $this->drupalPostForm(NULL, ['new' => 'image_scale'], t('Add')); - - // Add another scale effect and make sure both exist. $this->drupalPostForm(NULL, ['data[width]' => '12', 'data[height]' => '19'], t('Add effect')); $this->assertText(t('Scale 24×19')); $this->assertText(t('Scale 12×19'));