-
Notifications
You must be signed in to change notification settings - Fork 6
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
FRW-6354 Fixed Edit Category page so that any store can be assigned to a category. #958
Open
aleksandr-velikanov
wants to merge
19
commits into
master
Choose a base branch
from
bugfix/frw-6354/dms-cannot-assign-category-to-a-new-store
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0b9c646
FRW-6354 Add steps for category edit
261032b
FRW-6354 Add success message check for store creation
8aebc45
FRW-6354 Update steps
5755fc8
FRW-6354 Use variable
247cae8
FRW-6354 Add import
097bc46
FRW-6354 Use variable
849e626
FRW-6354 Use variable
55c377c
FRW-6354 Add call to Dynamic_multistore test
db6ab09
FRW-6354 Add category store check
44095f7
FRW-6354 Use variables
e906fc1
FRW-6354 Use env variables
d4c18de
FRW-6354 Add bapi tag
8708fac
FRW-6354 Use env var
cd92ec3
FRW-6354 Cleanup
c268853
FRW-6354 Use vars, add P&S
5ebea61
FRW-6354 Update check
24b18e3
FRW-6354 Add param
dd938ae
FRW-6354 Use demoshop as default category
6ccbb0b
FRW-6354 Update conditions
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*** Variables *** | ||
${zed_category_edit_button} xpath=//body/ul[@class='dropdown-menu']/li/a[contains(.,'Edit')] | ||
${zed_category_store_select} xpath=//select[@id="category_store_relation_id_stores"] | ||
${zed_category_store_select_search_field} xpath=//select[@id="category_store_relation_id_stores"]/following-sibling::*//input[contains(@class,'select2-search')] | ||
${zed_category_save_button} xpath=//button[contains(@class,'safe-submit')] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
*** 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} ${category} | ||
Zed: go to second navigation item level: Catalog Category | ||
Zed: click Action Button in a table for row that contains: ${category} Edit | ||
Click ${zed_category_edit_button} | ||
Set Browser Timeout ${browser_timeout} | ||
Wait Until Element Is Visible ${zed_category_store_select} | ||
Type Text ${zed_category_store_select_search_field} ${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 | ||
|
||
@{items} = Get Elements xpath=//div[@id='tab-content-settings']//div[contains(@class, 'ibox') and contains(@class, 'collapsed')]//a[@class='collapse-link'] | ||
FOR ${item} IN @{items} | ||
Click ${item} | ||
END | ||
|
||
${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}'' == '$EMPTY'" | ||
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} | ||
Trigger Multistore P&S | ||
Trigger P&S 3 ${store} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.