File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
main/frontend/src/components
test/robotframework/series/add-price Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class AddCatalogPriceFormView extends React.PureComponent {
123
123
const [ currencySymbol , currencyName ] = this . getCurrencyByCatalogName ( catalog ) ;
124
124
return (
125
125
< div className = "col-sm-12 form-group" >
126
- < form className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
126
+ < form id = "add-catalog-price-form" className = { `form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
127
127
onSubmit = { handleSubmit } >
128
128
< div
129
129
id = "add-catalog-price-failed-msg"
Original file line number Diff line number Diff line change
1
+ *** Settings ***
2
+ Documentation Verify scenarios of adding a catalog price to a series
3
+ Library SeleniumLibrary
4
+ Resource ../../auth.steps.robot
5
+ Suite Setup Before Test Suite
6
+ Suite Teardown Close Browser
7
+ Force Tags series add-price logic
8
+
9
+ *** Test Cases ***
10
+ Add a price by a catalog
11
+ [Template] Add a price
12
+ michel 10 EUR
13
+ scott 20 USD
14
+ yvert 30 EUR
15
+ gibbons 40 GBP
16
+ solovyov 50 RUB
17
+ zagorski 60 RUB
18
+
19
+ *** Keywords ***
20
+ Before Test Suite
21
+ Open Browser ${SITE_URL } /account/auth ${BROWSER }
22
+ Register Keyword To Run On Failure Log Source
23
+ Log In As login=admin password=test
24
+ Go To ${SITE_URL } /series/4
25
+
26
+ Add a price
27
+ [Arguments] ${catalog } ${price } ${currency }
28
+ Select From List By Value id:price-catalog-name ${catalog }
29
+ Input Text id:catalog-price ${price }
30
+ Submit Form id:add-catalog-price-form
31
+ Wait Until Page Does Not Contain id:add-catalog-price-form
32
+ Wait Until Page Contains Element id:${catalog } _catalog_info
33
+ Element Text Should Be id:${catalog } _catalog_info ${price } ${currency }
You can’t perform that action at this time.
0 commit comments