@@ -9,40 +9,46 @@ Force Tags series import-series logic
9
9
10
10
*** Test Cases ***
11
11
Import series from an external site (in English, use category, country and date locators)
12
- [Documentation] Verify import from a page in English and with different locators
13
- Input Text id=url http://127.0.0.1:8080/series/2?lang=en
14
- Submit Form id=import-series-form
15
- ${requestLocation } = Get Location
16
- Should Match Regexp ${requestLocation } /series/import/request/\\d+
17
- ${category } = Get Selected List Label id=category
18
- ${country } = Get Selected List Label id=country
12
+ [Documentation] Verify import from a page in English and with different locators
13
+ Input Text id=url http://127.0.0.1:8080/series/2?lang=en
14
+ Submit Form id=import-series-form
15
+ ${requestLocation } = Get Location
16
+ Should Match Regexp ${requestLocation } /series/import/request/\\d+
17
+ ${category } = Get Selected List Label id=category
18
+ ${country } = Get Selected List Label id=country
19
19
# We can't use "Textfield Value Should Be" because it causes NPE on inputs of type url/number:
20
20
# https://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/92
21
- ${quantity } = Get Value id=quantity
22
- ${imageUrl } = Get Value id=image-url
23
- ${year } = Get Selected List Label id=year
24
- Element Text Should Be id=request-url http://127.0.0.1:8080/series/2?lang=en
25
- Element Text Should Be id=request-status ParsingSucceeded
26
- Should Be Equal ${category } Prehistoric animals
27
- Should Be Equal ${country } Italy
28
- Should Be Empty ${quantity }
29
- Checkbox Should Be Selected id=perforated
30
- Should Be Equal ${imageUrl } http://127.0.0.1:8080/image/1
31
- Should Be Equal ${year } 2000
32
- Input Text id=quantity 1
33
- Submit Form id=create-series-form
34
- ${seriesLocation } = Get Location
35
- Should Match Regexp ${seriesLocation } /series/\\d+
36
- Element Text Should Be id=category_name Prehistoric animals
37
- Element Text Should Be id=country_name Italy
38
- Element Text Should Be id=issue_date 2000
39
- Element Text Should Be id=quantity 1
40
- Element Text Should Be id=perforated Yes
41
- Page Should Contain Image id=series-image-1
42
- Go To ${requestLocation }
43
- Element Text Should Be id=request-status ImportSucceeded
44
- Element Should Be Disabled id=create-series-btn
45
- Page Should Contain Link link=${seriesLocation }
21
+ ${quantity } = Get Value id=quantity
22
+ ${imageUrl } = Get Value id=image-url
23
+ ${year } = Get Selected List Label id=year
24
+ Element Text Should Be id=request-url http://127.0.0.1:8080/series/2?lang=en
25
+ Element Text Should Be id=request-status ParsingSucceeded
26
+ Should Be Equal ${category } Prehistoric animals
27
+ Should Be Equal ${country } Italy
28
+ Should Be Empty ${quantity }
29
+ Checkbox Should Be Selected id=perforated
30
+ Should Be Equal ${imageUrl } http://127.0.0.1:8080/image/1
31
+ Should Be Equal ${year } 2000
32
+ Input Text id=quantity 1
33
+ Submit Form id=create-series-form
34
+ ${seriesLocation } = Get Location
35
+ Should Match Regexp ${seriesLocation } /series/\\d+
36
+ Element Text Should Be id=category_name Prehistoric animals
37
+ Element Text Should Be id=country_name Italy
38
+ Element Text Should Be id=issue_date 2000
39
+ Element Text Should Be id=quantity 1
40
+ Element Text Should Be id=perforated Yes
41
+ Page Should Contain Image id=series-image-1
42
+ Go To ${requestLocation }
43
+ Element Text Should Be id=request-status ImportSucceeded
44
+ Element Should Be Disabled id=category
45
+ Element Should Be Disabled id=country
46
+ Page Should Not Contain Element id=quantity
47
+ Page Should Not Contain Element id=perforated
48
+ Element Should Be Disabled id=image-url
49
+ Element Should Be Disabled id=year
50
+ Page Should Not Contain Element id=create-series-btn
51
+ Page Should Contain Link link=${seriesLocation }
46
52
47
53
Import series from an external site (in Russian, use description locator)
48
54
[Documentation] Verify import from a page in Russian and shared locator
0 commit comments