From cae2eb0c34982aec79630916ef1340db4465e4ad Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 21 Jul 2022 12:05:55 +1200 Subject: [PATCH] MNT Fix behat test --- tests/Behat/features/block-link-field.feature | 3 ++- tests/Behat/features/element-editor.feature | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Behat/features/block-link-field.feature b/tests/Behat/features/block-link-field.feature index 94263e5..75da115 100644 --- a/tests/Behat/features/block-link-field.feature +++ b/tests/Behat/features/block-link-field.feature @@ -9,7 +9,8 @@ Feature: Add link to banner block And a "image" "Uploads/folder1/file1.jpg" And a "page" "Blocks Page" with a "Alice's Block" banner element with "Alice's sample content" content Given I am logged in with "ADMIN" permissions - And I go to "/admin/pages/edit/show/6" + And I go to "/admin/pages" + And I click on "Blocks Page" in the tree And I wait until I see the ".element-editor__element" element Then I should see "Alice's Block" diff --git a/tests/Behat/features/element-editor.feature b/tests/Behat/features/element-editor.feature index 6a3b333..c938b48 100644 --- a/tests/Behat/features/element-editor.feature +++ b/tests/Behat/features/element-editor.feature @@ -14,7 +14,8 @@ Feature: Manage banner blocks Given I am logged in with "ADMIN" permissions # Replace with 'And I click "Blocks Page" in the ".breadcrumbs-wrapper" element' once the ElementalArea refreshes, # See https://github.com/dnadesign/silverstripe-elemental/issues/320 - And I go to "/admin/pages/edit/show/6" + And I go to "/admin/pages" + And I click on "Blocks Page" in the tree And I wait until I see the ".element-editor__element" element Then I should see "Alice's Block"