From e19dfd628b37539dbe163d52243314e9a4689b3f Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Mon, 11 Jan 2016 17:08:23 +0000 Subject: [PATCH] Add behat coverage to check that file field is reset when adding links --- tests/behat/features/insert-a-link.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/behat/features/insert-a-link.feature b/tests/behat/features/insert-a-link.feature index 3d66fbf9..92b79277 100644 --- a/tests/behat/features/insert-a-link.feature +++ b/tests/behat/features/insert-a-link.feature @@ -57,6 +57,10 @@ So that I can link to a external website or a page on my site Then the "Content" HTML field should contain "awesome" # Required to avoid "unsaved changes" browser dialog Then I press the "Save draft" button + # Check that the field is reset when adding another new link + Given I select "content" in the "Content" HTML field + When I press the "Insert Link" button + Then I should not see a ".ss-uploadfield-files .ss-uploadfield-item" element Scenario: I can link to an anchor Given I fill in the "Content" HTML field with "

My awesome content

"