Skip to content

Commit 52df7f3

Browse files
committed
test: cover cases when we add a series sale with all or only required fields
Part of #498
1 parent 339c343 commit 52df7f3

File tree

1 file changed

+38
-0
lines changed
  • src/test/robotframework/series/sales/creation

1 file changed

+38
-0
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
*** Settings ***
2+
Documentation Verify adding a sale to a series
3+
Library SeleniumLibrary
4+
Resource ../../../auth.steps.robot
5+
Resource ../../../selenium.utils.robot
6+
Suite Setup Before Test Suite
7+
Suite Teardown Close Browser
8+
Force Tags series sales logic
9+
10+
*** Test Cases ***
11+
Add a sale with only required fields
12+
Select From List By Label id:seller Tommy Lee Jones
13+
Input Text id:price 125
14+
Select From List By Value id:currency RUB
15+
Submit Form id:add-series-sales-form
16+
Element Text Should Be id:series-sale-1-info Tommy Lee Jones was selling for 125.00 RUB
17+
18+
Add a sale with all fields
19+
Input Text id:date 04.01.2021
20+
Select From List By Label id:seller Eicca Toppinen
21+
Input Text id:url http://example.com/series-sale
22+
Input Text id:price 7.5
23+
Select From List By Value id:currency EUR
24+
Input Text id:alt-price 10.1
25+
Select From List By Label id:alt-currency USD
26+
Select From List By Value id:condition MNH
27+
Select From List By Label id:buyer Tommy Lee Jones
28+
Submit Form id:add-series-sales-form
29+
Element Text Should Be id:series-sale-1-info 04.01.2021 Eicca Toppinen sold to Tommy Lee Jones for 7.50 EUR (10.10 USD) (MNH)
30+
Link Should Point To id:series-sale-1-transaction http://example.com/series-sale
31+
32+
33+
*** Keywords ***
34+
Before Test Suite
35+
Open Browser ${SITE_URL}/account/auth ${BROWSER}
36+
Register Keyword To Run On Failure Log Source
37+
Log In As login=admin password=test
38+
Go To ${SITE_URL}/series/2

0 commit comments

Comments
 (0)