From ce8576429219d28d82d9ad4e266a58073818e6ca Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 18 Jul 2015 15:38:44 +1200 Subject: [PATCH] Behat tests hotlinking to non-existant image Caused by silverstripe.com redesign. Ideally we'd have a permanent asset hosted there which is clearly marked as a test dependency. Or create a placeholder for images linked served localhost within the Behat tests, in which case we wouldn't require a network connection to execute Behat. --- tests/behat/features/insert-an-image.feature | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/behat/features/insert-an-image.feature b/tests/behat/features/insert-an-image.feature index 7658f2f3..4414cc1a 100644 --- a/tests/behat/features/insert-an-image.feature +++ b/tests/behat/features/insert-an-image.feature @@ -17,12 +17,12 @@ Feature: Insert an image into a page Then I should see "Choose files to upload..." When I press the "From the web" button - And I fill in "RemoteURL" with "http://www.silverstripe.com/themes/sscom/images/silverstripe_logo_web.png" + And I fill in "RemoteURL" with "http://www.silverstripe.org/themes/ssv3/img/ss_logo.png" And I press the "Add url" button - Then I should see "silverstripe_logo_web.png (www.silverstripe.com)" in the ".ss-assetuploadfield span.name" element + Then I should see "ss_logo.png (www.silverstripe.org)" in the ".ss-assetuploadfield span.name" element When I press the "Insert" button - Then the "Content" HTML field should contain "silverstripe_logo_web.png" + Then the "Content" HTML field should contain "ss_logo.png" # Required to avoid "unsaved changed" browser dialog Then I press the "Save draft" button