From 9a812101fb3da5e5b0f1bcc59d6533b3a979f661 Mon Sep 17 00:00:00 2001 From: Paul Clarke Date: Mon, 5 Sep 2016 11:22:48 +1200 Subject: [PATCH] Update tests --- tests/behat/features/insert-a-link.feature | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/behat/features/insert-a-link.feature b/tests/behat/features/insert-a-link.feature index d649a82e..7eb97134 100644 --- a/tests/behat/features/insert-a-link.feature +++ b/tests/behat/features/insert-a-link.feature @@ -16,7 +16,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to an internal page Given I select "awesome" in the "Content" HTML field And I press the "Insert Link" HTML field button - When I select the "Page on the site" radio button + When I select the "Link to a page on this site" radio button And I fill in the "internal" dropdown with "Home" And I fill in "my desc" for "Link description" And I press the "Insert" button @@ -28,7 +28,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to an anchor in an internal page Given I select "awesome" in the "Content" HTML field And I press the "Insert Link" HTML field button - And I select the "Page on the site" radio button + And I select the "Link to a page on this site" radio button And I fill in the "internal" dropdown with "Details" And I wait for 1 second And I select "youranchor" from "Form_EditorToolbarLinkForm_AnchorSelector" @@ -40,7 +40,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to an external URL Given I select "awesome" in the "Content" HTML field And I press the "Insert Link" HTML field button - When I select the "Another website" radio button + When I select the "Link to another website" radio button And I fill in "http://silverstripe.org" for "URL" And I check "Open link in a new window" And I press the "Insert" button @@ -51,7 +51,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to a file Given I select "awesome" in the "Content" HTML field When I press the "Insert Link" HTML field button - When I select the "Download a file" radio button + When I select the "Link to download a file" radio button And I attach the file "testfile.jpg" to "file[Uploads][]" with HTML5 And I press the "Insert" button Then the "Content" HTML field should contain "awesome" @@ -66,7 +66,7 @@ So that I can link to a external website or a page on my site Given I fill in the "Content" HTML field with "

My awesome content

" And I select "awesome" in the "Content" HTML field When I press the "Insert Link" HTML field button - When I select the "Anchor on this page" radio button + When I select the "Link to an anchor on this page" radio button And I select "myanchor" from "Form_EditorToolbarLinkForm_AnchorSelector" And I press the "Insert" button Then the "Content" HTML field should contain "awesome"