Skip to content

Commit

Permalink
MNT Behat test to test special characters in shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Aug 8, 2023
1 parent cda12f6 commit f7ddea8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/behat/features/insert-an-image.feature
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,24 @@ Feature: Insert an image into a page
Then the "Content" HTML field should contain "My alt updated"
# Required to avoid "unsaved changed" browser dialog
And I press the "Save" button
@runthis
Scenario: I can add text with special characters as Alternative text
When I press the "Insert from Files" HTML field button
And I select the file named "folder1" in the gallery
And I click on the file named "file1" in the gallery
Then I should see the "Form_fileInsertForm" form
When I fill in "Alternative text (alt)" with "My alt updated & saved"
When I fill in "Title text (tooltip)" with "My title text updated & saved"
And I press the "Insert" button
Then the "Content" HTML field should contain "file1.jpg"
And the "Content" HTML field should contain "My alt updated & saved"
And I press the "Save" button
When I press the "Save" button
Then the "Content" HTML field should contain "file1.jpg"
And the "Content" HTML field should contain "My alt updated & saved"
And the "Content" HTML field should not contain "My alt updated & saved"
And the "Content" HTML field should contain "My title text updated & saved"
And the "Content" HTML field should not contain "My title text updated & saved"

Scenario: I can link to a file
Given I select "awesome" in the "Content" HTML field
Expand Down

0 comments on commit f7ddea8

Please sign in to comment.