From 063f75dc0f393e8384984bd33f140211829f35fb Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Mon, 6 Nov 2023 09:48:00 +1300 Subject: [PATCH] MNT Update behat tests to support toast messages --- tests/behat/features/create-taxonomies.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/behat/features/create-taxonomies.feature b/tests/behat/features/create-taxonomies.feature index 4502f84..8675ebb 100644 --- a/tests/behat/features/create-taxonomies.feature +++ b/tests/behat/features/create-taxonomies.feature @@ -38,6 +38,8 @@ Feature: Create taxonomies And I press the "Create" button When I follow "My taxonomy term" And I click the "Children" CMS tab - Then I should see "My child taxonomy term" + Then I should see "My child taxonomy term" in the "#Form_ItemEditForm_Children" element When I follow "Taxonomy Terms" - Then I should not see "My child taxonomy term" + # This needs a different selector, because it's in a different form. + # The Item in "#Form_EditForm_SilverStripe-Taxonomy-TaxonomyTerm" is a parent for "Children" CMS tab + Then I should not see "My child taxonomy term" in the "#Form_EditForm_SilverStripe-Taxonomy-TaxonomyTerm" element