From f90558ed4c3f6324941cf803fd4beae3086c1fd8 Mon Sep 17 00:00:00 2001 From: Bogdan Mazur <59828795+bogusez@users.noreply.github.com> Date: Mon, 22 Jan 2024 09:40:07 +0100 Subject: [PATCH] [Behat] Fix for Save and close buttons (#5) Co-authored-by: Bogdan Mazur --- features/browser/CatalogFilters.feature | 2 +- features/browser/Products.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/browser/CatalogFilters.feature b/features/browser/CatalogFilters.feature index 97fd2fa..885f5f8 100644 --- a/features/browser/CatalogFilters.feature +++ b/features/browser/CatalogFilters.feature @@ -23,7 +23,7 @@ Feature: Remote PIM And I should not see products on catalog form | Name | Code | | Demo Product 4 | 0004 | - And I click on the edit action bar button "Create" + And I click on the edit action bar button "Save and close" And success notification that "Catalog 'Catalog with filter' created." appears And I should see a Catalog with values | Name | Identifier | diff --git a/features/browser/Products.feature b/features/browser/Products.feature index bb99030..81f498a 100644 --- a/features/browser/Products.feature +++ b/features/browser/Products.feature @@ -19,7 +19,7 @@ Feature: Remote PIM Given I open "Demo Product 1" Product page in admin SiteAccess When I change tab to "Prices" And I set a Base price to "10.00" in "EUR" - And I click on the edit action bar button "Create" + And I click on the edit action bar button "Save and close" Then I should see a Base price with "10.00 €" value Scenario: Availability can be added to Product @@ -28,6 +28,6 @@ Feature: Remote PIM And I start adding availability to product And I set an Availability to "true" And I set a Stock to "5" - And I click on the edit action bar button "Create" + And I click on the edit action bar button "Save and close" Then I should see an Availability with "true" value And I should see a Stock with "5" value