From 7e10f298177b08b84723811467aa20baf04ad9e7 Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Mon, 1 Jul 2024 10:36:41 +1200 Subject: [PATCH] MNT Tweak behat test to look for tag with specific attribute itstead of looking for a specifc string in the HTML (#2971) --- tests/behat/features/edit-a-page.feature | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/behat/features/edit-a-page.feature b/tests/behat/features/edit-a-page.feature index 0e85affe..d35f1df8 100644 --- a/tests/behat/features/edit-a-page.feature +++ b/tests/behat/features/edit-a-page.feature @@ -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 "" + 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