-
Notifications
You must be signed in to change notification settings - Fork 6
FRW-6354 Fixed Edit Category page so that any store can be assigned to a category. #958
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
base: master
Are you sure you want to change the base?
Changes from 8 commits
0b9c646
261032b
8aebc45
5755fc8
247cae8
097bc46
849e626
55c377c
db6ab09
44095f7
e906fc1
d4c18de
8708fac
cd92ec3
c268853
5ebea61
24b18e3
dd938ae
6ccbb0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| *** Settings *** | ||
| Resource ../pages/zed/zed_cms_page_page.robot | ||
| Resource ../common/common_zed.robot | ||
| Resource ../common/common.robot | ||
|
|
||
| *** Keywords *** | ||
|
|
||
| Zed: assign store to category: | ||
| [Arguments] ${store} | ||
| Zed: go to second navigation item level: Catalog Category | ||
| Zed: click Action Button in a table for row that contains: cables Edit | ||
|
||
| Click xpath=//body/ul[@class='dropdown-menu']/li/a[contains(.,'Edit')] | ||
|
||
| Set Browser Timeout ${browser_timeout} | ||
| Wait Until Element Is Visible xpath=//select[@id="category_store_relation_id_stores"] | ||
|
||
| Type Text xpath=//select[@id="category_store_relation_id_stores"]/following-sibling::*//input[contains(@class,'select2-search')] ${store} delay=50ms | ||
| Wait Until Element Is Visible xpath=//*[contains(@class,'select2-results')][contains(@class,'options')]//li[contains(text(),'${store}')] | ||
| Click xpath=//*[contains(@class,'select2-results')][contains(@class,'options')]//li[contains(text(),'${store}')] | ||
| Sleep 1s | ||
|
|
||
| ${iterations}= Get Element Count xpath=//input[contains(concat(' ',@id,' '), 'category_localized_attributes_') and contains(@id,'_name') and @type='text' and @required='required'] | ||
| FOR ${index} IN RANGE 0 ${iterations} | ||
| ${currentInput}= Set Variable xpath=//input[@id='category_localized_attributes_${index}_name'] | ||
| ${value}= Get Text ${currentInput} | ||
| IF '${value}' == '${EMPTY}' | ||
| Click ${currentInput}//ancestor::div[contains(@class, 'ibox') and contains(@class, 'collapsed')]//a[@class='collapse-link'] | ||
| Type Text ${currentInput} 'test' delay=50ms | ||
| END | ||
| END | ||
|
|
||
| Wait Until Element Is Visible ${zed_category_save_button} | ||
| Click ${zed_category_save_button} | ||
| Wait until element is visible ${zed_success_flash_message} | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -54,6 +54,8 @@ Zed: create new Store: | |||||
| END | ||||||
| END | ||||||
| Click ${zed_store_save_button} | ||||||
| wait until element is visible ${zed_success_flash_message} | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
|
|
||||||
| Zed: perform store search by: | ||||||
| [Arguments] ${search_key} | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ Resource ../../../../resources/steps/orders_management_steps.robot | |
| Resource ../../../../resources/steps/zed_customer_steps.robot | ||
| Resource ../../../../resources/steps/zed_discount_steps.robot | ||
| Resource ../../../../resources/steps/zed_availability_steps.robot | ||
| Resource ../../../../resources/steps/zed_catalog_category_steps.robot | ||
| Resource ../../../../resources/steps/zed_cms_page_steps.robot | ||
| Resource ../../../../resources/steps/merchant_profile_steps.robot | ||
| Resource ../../../../resources/steps/zed_marketplace_steps.robot | ||
|
|
@@ -296,6 +297,7 @@ Dynamic_multistore | |
| Zed: login on Zed with provided credentials: ${zed_admin_email} | ||
| Zed: assigned store to cms block: ${random_str_store}_${random_str_store} customer-registration_token--html | ||
| Zed: assigned store to cms block: ${random_str_store}_${random_str_store} customer-registration_token--text | ||
| Zed: assign store to category: ${random_str_store} | ||
|
||
| ## register new customer in the new store on YVES | ||
| Yves: go to AT store 'Home' page if other store not specified: ${random_str_store}_${random_str_store} | ||
| Register a new customer with data: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this locator is specific to Edit Category page, but locators in this file are general for many pages in Zed.
In this case please create a new
zed_edit_category_page.robotfile in https://github.com/spryker/robotframework-suite-tests/tree/master/resources/pages/zed and move it there