From 41c0b8fb85b7ac11f18eb1813f9e063e13cbafa2 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Wed, 12 Sep 2018 13:14:06 +1200 Subject: [PATCH] Fix 'Insert links into a page' test --- 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 48508b37..dfe3c7b3 100644 --- a/tests/behat/features/insert-a-link.feature +++ b/tests/behat/features/insert-a-link.feature @@ -15,7 +15,7 @@ So that I can link to a external website or a page on my site Scenario: I can link to an internal page When I select "awesome" in the "Content" HTML field - And I press the "Insert Link" HTML field button + And I press the "Insert link" HTML field button And I click "Page on this site" in the ".mce-menu" element Then I should see an "form#Form_editorInternalLink" element When I click "(Choose Page)" in the ".Select-multi-value-wrapper" element @@ -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 When I select "awesome" in the "Content" HTML field - And I press the "Insert Link" HTML field button + And I press the "Insert link" HTML field button And I click "Anchor on a page" in the ".mce-menu" element Then I should see an "form#Form_editorAnchorLink" element And I should see "About Us" in the "#Form_editorAnchorLink_PageID_Holder .Select-multi-value-wrapper" element @@ -46,7 +46,7 @@ So that I can link to a external website or a page on my site Scenario: I can edit a link to an internal page Given I fill in the "Content" HTML field with "awesome" And I select "awesome" in the "Content" HTML field - And I press the "Insert Link" HTML field button + And I press the "Insert link" HTML field button And I click "Page on this site" in the ".mce-menu" element And I should see an "form#Form_editorInternalLink" element Then I should see "About Us" in the ".Select-value" element @@ -62,7 +62,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 + And I press the "Insert link" HTML field button When I click "Link to external URL" in the ".mce-menu" element And I should see an "form#Form_ModalsEditorExternalLink" element When I fill in "http://silverstripe.org" for "URL" @@ -75,7 +75,7 @@ So that I can link to a external website or a page on my site Scenario: I can edit a link 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 press the "Insert link" HTML field button And I click "Link to external URL" in the ".mce-menu" element And I should see an "form#Form_ModalsEditorExternalLink" element Then the "URL" field should contain "http://silverstripe.org"