Skip to content

Commit

Permalink
MNT Update behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 1, 2024
1 parent 870d97f commit d43014f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/behat/features/insert-a-link.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ So that I can link to a external website or a page on my site
And I should not see "Link text"
When I select "About Us" in the "#Form_editorInternalLink_PageID_Holder" tree dropdown
And I press the "Insert link" button
Then the "Content" HTML field should contain "<a href="[sitetree_link,id=2]"><img src="file1.jpg"></a>"
Then the "Content" HTML field should contain "<a href="[sitetree_link,id=2]"><img src="file1.jpg" alt=""></a>"
# Required to avoid "unsaved changed" browser dialog
And I press the "Save" button

Expand Down Expand Up @@ -76,7 +76,7 @@ So that I can link to a external website or a page on my site
And I should not see "Link text"
When I fill in "http://silverstripe.org" for "URL"
And I press the "Insert link" button
Then the "Content" HTML field should contain "<a href="http://silverstripe.org"><img src="file1.jpg"></a>"
Then the "Content" HTML field should contain "<a href="http://silverstripe.org"><img src="file1.jpg" alt=""></a>"
# Required to avoid "unsaved changed" browser dialog
And I press the "Save" button

Expand Down
4 changes: 2 additions & 2 deletions tests/behat/features/insert-anchor-link.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ So that I can link to a external website or a page on my site
Then I should see "youranchor" in the "#Form_editorAnchorLink_Anchor_Holder .anchorselectorfield__value-container" element
When I fill in "my desc" for "Link description"
And I press the "Insert link" button
Then the "Content" HTML field should contain "<a title="my desc" href="[sitetree_link,id=3]#youranchor">awesome</a>"
Then the "Content" HTML field should contain "<a title="my desc" href="[sitetree_link,id=3]#youranchor" alt="">awesome</a>"
# Required to avoid "unsaved changes" browser dialog
Then I press the "Save" button

Expand All @@ -40,7 +40,7 @@ So that I can link to a external website or a page on my site
When I select "Details" in the "#Form_editorAnchorLink_PageID_Holder" tree dropdown
And I select "youranchor" in the "#Form_editorAnchorLink_Anchor_Holder" anchor dropdown
And I press the "Insert link" button
Then the "Content" HTML field should contain "<a href="[sitetree_link,id=3]#youranchor"><img src="file1.jpg"></a>"
Then the "Content" HTML field should contain "<a href="[sitetree_link,id=3]#youranchor"><img src="file1.jpg" alt=""></a>"
# Required to avoid "unsaved changed" browser dialog
And I press the "Save" button

Expand Down

0 comments on commit d43014f

Please sign in to comment.