Skip to content

Commit

Permalink
MNT Update selector in behat to reflect changes in silverstripe/admin (
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 27, 2024
1 parent 59aea22 commit 8db155c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/Behat/features/add-link-to-anchor.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

0 comments on commit 8db155c

Please sign in to comment.