From 4da6253b8c8be459b8d8dfb19acbc5fd8f4a4f38 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 26 Nov 2024 10:34:53 +1300 Subject: [PATCH] MNT Update selector in behat to reflect changes in silverstripe/admin --- .../Behat/features/add-link-to-anchor.feature | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/Behat/features/add-link-to-anchor.feature b/tests/Behat/features/add-link-to-anchor.feature index 0213de78..7b0c1448 100644 --- a/tests/Behat/features/add-link-to-anchor.feature +++ b/tests/Behat/features/add-link-to-anchor.feature @@ -17,11 +17,11 @@ So that I can direct users directly to the relevant information And I select "awesome" in the "Content" HTML field And I press the "Insert link" HTML field button And I click "Anchor on a page" in the ".tox-menu" element - Then I should see an "form#Form_editorAnchorLink" element - And I should see "No Blocks" in the "#Form_editorAnchorLink_PageID_Holder .treedropdownfield__value-container" element - When I select "Elemental" in the "#Form_editorAnchorLink_PageID_Holder" tree dropdown - And I select "element-anchor" in the "#Form_editorAnchorLink_Anchor_Holder" anchor dropdown - Then I should see "element-anchor" in the "#Form_editorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element + Then I should see an "form#Form_linkModalFormeditorAnchorLink" element + And I should see "No Blocks" in the "#Form_linkModalFormeditorAnchorLink_PageID_Holder .treedropdownfield__value-container" element + When I select "Elemental" in the "#Form_linkModalFormeditorAnchorLink_PageID_Holder" tree dropdown + And I select "element-anchor" in the "#Form_linkModalFormeditorAnchorLink_Anchor_Holder" anchor dropdown + Then I should see "element-anchor" in the "#Form_linkModalFormeditorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element # Close the dialog now that we're done with it. When I click on the "button.close" element @@ -34,11 +34,11 @@ So that I can direct users directly to the relevant information When I select "awesomer" in the "Content" HTML field And I press the "Insert link" HTML field button And I click "Anchor on a page" in the ".tox-menu" element - Then I should see an "form#Form_editorAnchorLink" element - And I should see "Elemental" in the "#Form_editorAnchorLink_PageID_Holder .treedropdownfield__value-container" element - When I select "No Blocks" in the "#Form_editorAnchorLink_PageID_Holder" tree dropdown - And I select "normal-anchor" in the "#Form_editorAnchorLink_Anchor_Holder" anchor dropdown - Then I should see "normal-anchor" in the "#Form_editorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element + Then I should see an "form#Form_linkModalFormeditorAnchorLink" element + And I should see "Elemental" in the "#Form_linkModalFormeditorAnchorLink_PageID_Holder .treedropdownfield__value-container" element + When I select "No Blocks" in the "#Form_linkModalFormeditorAnchorLink_PageID_Holder" tree dropdown + And I select "normal-anchor" in the "#Form_linkModalFormeditorAnchorLink_Anchor_Holder" anchor dropdown + Then I should see "normal-anchor" in the "#Form_linkModalFormeditorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element # Close the dialog now that we're done with it. When I click on the "button.close" element @@ -51,9 +51,9 @@ So that I can direct users directly to the relevant information When I select "awesomer" in the "Content" HTML field And I press the "Insert link" HTML field button And I click "Anchor on a page" in the ".tox-menu" element - Then I should see an "form#Form_editorAnchorLink" element - And I should see "Elemental" in the "#Form_editorAnchorLink_PageID_Holder .treedropdownfield__value-container" element - When I select "another-anchor" in the "#Form_editorAnchorLink_Anchor_Holder" anchor dropdown - Then I should see "another-anchor" in the "#Form_editorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element + Then I should see an "form#Form_linkModalFormeditorAnchorLink" element + And I should see "Elemental" in the "#Form_linkModalFormeditorAnchorLink_PageID_Holder .treedropdownfield__value-container" element + When I select "another-anchor" in the "#Form_linkModalFormeditorAnchorLink_Anchor_Holder" anchor dropdown + Then I should see "another-anchor" in the "#Form_linkModalFormeditorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element # Close the dialog now that we're done with it. When I click on the "button.close" element