Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Behat] Minor improvements for accessing shop product page scenarios #15147

Merged
merged 1 commit into from Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -11,32 +11,33 @@ Feature: Accessing a store's product page
And I am using "Polish (Poland)" locale for my panel

@ui @no-api
Scenario: Opening a product's page from the admin panel when the product has a translation with a defined slug in the administrator's chosen language
Scenario: Accessing the product shop page from the admin panel when the product has a translation with a defined slug in the administrator's chosen language
Given the locale "Polish (Poland)" is enabled
And this product is named "Bulldog francuski T-Shirt" in the "Polish (Poland)" locale
When I want to edit this product
Then the show product's page button should be enabled
And it should be leading to the product's page in the "Polish (Poland)" locale

@ui @no-api
Scenario: Opening a product's page from the admin panel when the product has a translation with a defined slug in the default channel's language
Scenario: Accessing the product shop page from the admin panel when the product has a translation with a defined slug in the default channel's language
Given the locale "French (France)" is enabled
And this product is named "Tee-shirt bouledogue français" in the "French (France)" locale
When I want to edit this product
Then the show product's page button should be enabled
And it should be leading to the product's page in the "German (Germany)" locale

@ui @no-api
Scenario: Opening a product's page from the admin panel with using first available locale with slug and enabled in the channel
Scenario: Accessing the product shop page from the admin panel with using first available locale with slug and enabled in the channel
Given the locale "French (France)" is enabled
And the store also operates in "French (France)" locale
And this product has no slug in the "German (Germany)" locale
And this product is named "T-shirt bouledogue français" in the "French (France)" locale
When I want to edit this product
Then it should be leading to the product's page in the "French (France)" locale
Then the show product's page button should be enabled
And it should be leading to the product's page in the "French (France)" locale

@ui @no-api
Scenario: Not being able to open a product's page from the admin panel when the product has no translations meeting the criteria
Scenario: Not being able to access the product shop page from the admin panel when the product has no translations meeting the criteria
Given this product has no translations with a defined slug
When I want to edit this product
Then the show product's page button should be disabled