Skip to content

Commit

Permalink
MNT Tweak behat test to look for tag with specific attribute itstead …
Browse files Browse the repository at this point in the history
…of looking for a specifc string in the HTML (#2971)
  • Loading branch information
Maxime Rainville authored Jun 30, 2024
1 parent 137bf49 commit 7e10f29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/behat/features/edit-a-page.feature
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ Feature: Edit a page
And I press the "Publish" button
And I go to "/about-us"
# insert from files
Then the rendered HTML should contain "<img src=\"/assets/file1.jpg\""
Then I should see an "img[src='/assets/file1.jpg']" element
# link to a file
Then the rendered HTML should contain "<a href=\"/assets/file1.jpg\">"
Then I should see an "a[href='/assets/file1.jpg']" element
# media embed
Then the rendered HTML should contain "src=\"https://www.youtube.com/embed/ScMzIvxBSi4?feature=oembed\""
Then I should see an "iframe[src='https://www.youtube.com/embed/ScMzIvxBSi4?feature=oembed']" element

Scenario: Change page type
When I click on "About Us" in the tree
Expand Down

0 comments on commit 7e10f29

Please sign in to comment.