diff --git a/tests/features/contentpage.feature b/tests/features/contentpage.feature index 98f9516..bbdf206 100644 --- a/tests/features/contentpage.feature +++ b/tests/features/contentpage.feature @@ -23,7 +23,6 @@ Feature: Add content page @api @javascript @panopoly_pages @local_files Scenario: Add a Featured Image with incorrect dimensions When I attach the file "test-sm.png" to "files[field_featured_image_und_0]" - And I wait 2 seconds Then I should see "The specified file test-sm.png could not be uploaded. The image is too small; the minimum dimensions are 300x200 pixels." @api @javascript @panopoly_pages @local_files @@ -35,7 +34,6 @@ Feature: Add content page | Editor | plain_text | | body[und][0][value] | Testing body | And I attach the file "test-lg.png" to "files[field_featured_image_und_0]" - And I wait 2 seconds Then I should not see "The specified file test-lg.png could not be uploaded. The image is too small; the minimum dimensions are 300x200 pixels." When I fill in "Alt Text" with "Panopoly rocks" #And I press "Publish" diff --git a/tests/steps/panopoly_test.behat.inc b/tests/steps/panopoly_test.behat.inc index af79cbf..fc7eea8 100644 --- a/tests/steps/panopoly_test.behat.inc +++ b/tests/steps/panopoly_test.behat.inc @@ -143,7 +143,7 @@ class TestSubContext extends RawDrupalContext implements DrupalSubContextInterfa public function afterStep($event) { if (isset($this->javascript) && $this->javascript) { $text = $event->getStep()->getText(); - if (preg_match('/(follow|press|click|submit|viewing|visit|reload)/i', $text)) { + if (preg_match('/(follow|press|click|submit|viewing|visit|reload|attach)/i', $text)) { $this->iWaitForAjax(); } } @@ -550,8 +550,7 @@ class TestSubContext extends RawDrupalContext implements DrupalSubContextInterfa /** - * @Then I should see the image alt :text in the :region region - * @Then /^I should see the image alt "(?P(?:[^"]|\\")*)" in the "(?P[^"]*)"(?:| region)$/ + * @Then /^I should see the image alt "(?P(?:[^"]|\\")*)" in the "(?P[^"]*)" region$/ * * NOTE: We specify a regex to allow escaped quotes in the alt text. */