MNT Test empty alt tags are included (#2978)

This commit is contained in:
Guy Sartorelli 2024-07-29 16:52:29 +12:00 committed by GitHub
parent 6218b130d6
commit 01e51c425f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ So that I can link to a external website or a page on my site
And I should not see "Link text" And I should not see "Link text"
When I select "About Us" in the "#Form_editorInternalLink_PageID_Holder" tree dropdown When I select "About Us" in the "#Form_editorInternalLink_PageID_Holder" tree dropdown
And I press the "Insert link" button 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 # Required to avoid "unsaved changed" browser dialog
And I press the "Save" button And I press the "Save" button
@ -80,7 +80,7 @@ So that I can link to a external website or a page on my site
And I should not see "Link text" And I should not see "Link text"
When I fill in "http://silverstripe.org" for "URL" When I fill in "http://silverstripe.org" for "URL"
And I press the "Insert link" button 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 # Required to avoid "unsaved changed" browser dialog
And I press the "Save" button And I press the "Save" button

View File

@ -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 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 select "youranchor" in the "#Form_editorAnchorLink_Anchor_Holder" anchor dropdown
And I press the "Insert link" button 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 # Required to avoid "unsaved changed" browser dialog
And I press the "Save" button And I press the "Save" button