Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Update selector in behat to reflect changes in silverstripe/admin #1280

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading