Skip to content

Commit 9bbd8c7

Browse files
committed
test: admin is able to add a price by a catalog to a series.
Relate to #1340 Part of #1410
1 parent 7a27875 commit 9bbd8c7

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

src/main/frontend/src/components/AddCatalogPriceForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class AddCatalogPriceFormView extends React.PureComponent {
123123
const [currencySymbol, currencyName] = this.getCurrencyByCatalogName(catalog);
124124
return (
125125
<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' : ''}` }
127127
onSubmit={ handleSubmit }>
128128
<div
129129
id="add-catalog-price-failed-msg"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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}

0 commit comments

Comments
 (0)