From eebae1f76684f2dbcea9ce2ca8dd9c9229d0789c Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 16 May 2017 16:47:07 +1200 Subject: [PATCH] BUG Fix insert link behat command --- tests/behat/features/insert-a-link.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/behat/features/insert-a-link.feature b/tests/behat/features/insert-a-link.feature index b430c101..3fd8b575 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 external URL Given I select "awesome" in the "Content" HTML field And I press the "Insert Link" HTML field button - When I click "Link to external URL" in the "[role='menuitem']" element + When I click "Link to external URL" in the ".mce-menu" element And I should see an "form#Form_EditorToolbarEditorExternalLink" element When I fill in "http://silverstripe.org" for "URL" And I check "Open in new window/tab" @@ -29,7 +29,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 - And I click "Link to external URL" in the "[role='menuitem']" element + And I click "Link to external URL" in the ".mce-menu" element And I should see an "form#Form_EditorToolbarEditorExternalLink" element Then the "URL" field should contain "http://silverstripe.org" # This doesn't seem to suffer from that issue