From 95c31bdcc51c6569f059e2de4887bf613c88d614 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 30 Jan 2024 14:55:31 +1300 Subject: [PATCH] FIX Failed Behat test --- .../features/multiple-wysiwyg-configs.feature | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/Behat/features/multiple-wysiwyg-configs.feature b/tests/Behat/features/multiple-wysiwyg-configs.feature index 191e403f..c2043be3 100644 --- a/tests/Behat/features/multiple-wysiwyg-configs.feature +++ b/tests/Behat/features/multiple-wysiwyg-configs.feature @@ -18,23 +18,23 @@ Feature: multiple elemental blocks with different HTMLEditorConfig instances Given I see a list of blocks # Check the link menu in the WYSIWYG "insert link" button is correct for block 1 When I click on block 1 - And I click on the "#Form_ElementForm_1 [aria-label^='Insert link'] button" element - Then I should see "Page on this site" in the ".mce-menu.mce-in" element - And I should see "Link to a file" in the ".mce-menu.mce-in" element - And I should see "Link to external URL" in the ".mce-menu.mce-in" element - And I should see "Anchor on a page" in the ".mce-menu.mce-in" element - And I should see "Link to email address" in the ".mce-menu.mce-in" element + And I click on the "#Form_ElementForm_1 button[aria-label^='Insert link']" element + Then I should see "Page on this site" in the ".tox-menu" element + And I should see "Link to a file" in the ".tox-menu" element + And I should see "Link to external URL" in the ".tox-menu" element + And I should see "Anchor on a page" in the ".tox-menu" element + And I should see "Link to email address" in the ".tox-menu" element # Check the link menu in the WYSIWYG "insert link" button is correct for block 2 When I click on block 2 # In CI, the mouse position just happens to produce a tooltip that stops us clicking on the insert link button # so we have to move the mouse somewhere else to avoid that And I click on the "input[type='text']" element - And I click on the "#Form_ElementForm_2 [aria-label^='Insert link'] button" element - Then I should see "Page on this site" in the ".mce-menu.mce-in" element - And I should see "Link to a file" in the ".mce-menu.mce-in" element - And I should see "Link to external URL" in the ".mce-menu.mce-in" element - And I should see "Anchor on a page" in the ".mce-menu.mce-in" element - And I should see "Link to email address" in the ".mce-menu.mce-in" element + And I click on the "#Form_ElementForm_2 button[aria-label^='Insert link']" element + Then I should see "Page on this site" in the ".tox-menu" element + And I should see "Link to a file" in the ".tox-menu" element + And I should see "Link to external URL" in the ".tox-menu" element + And I should see "Anchor on a page" in the ".tox-menu" element + And I should see "Link to email address" in the ".tox-menu" element # Check the content of both WYSIWYG fields is correct And the "Content" field for block 1 should contain "

Some content

" And the "Content" field for block 2 should contain "

completely different stuff

"