Skip to content

Commit c804045

Browse files
committed
build: update Robot Framework and integration tests to use Selenium 3.
This change updates: - robotframework-seleniumlibrary to 3.141.59.2653 - robotframework-maven-plugin to 1.5.1 - robotframework to 3.1.2 - selenium to 3.141.59 - htmlunit-driver to 2.36.0 - htmlunit to 2.36.0 Changelogs: - robotframework-seleniumlibrary * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.5.3.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.5.3.1 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.5.3.2 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.6.0.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.7.1.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.7.1.1 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.7.1.2 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.7.1.3 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.8.1.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.8.1.1 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.9.1.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.12.0.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.12.0.1 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.14.0.0 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.141.59.2 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.141.59.26 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.141.59.265 * https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/releases/tag/3.141.59.2653 - robotframework-maven-plugin * https://github.com/robotframework/MavenPlugin/releases/tag/1.4.8 * https://github.com/robotframework/MavenPlugin/releases/tag/1.4.9 * https://github.com/robotframework/MavenPlugin/releases/tag/1.5.0 * https://github.com/robotframework/MavenPlugin/releases/tag/1.5.1 - robotframework * https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-3.1.rst * https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-3.1.1.rst * https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-3.1.2.rst - selenium * https://github.com/SeleniumHQ/selenium/blob/selenium-3.141.59/java/CHANGELOG - htmlunit-driver * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.22 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.23 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.23.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.23.2 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.24 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.25 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.26 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.27 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.28 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.28.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.28.2 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.28.3 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.28.4 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.28.5 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.29.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.29.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.29.2 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.29.3 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.30.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.30.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.31.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.32.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.32.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.33.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.33.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.33.2 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.33.3 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.34.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.35.0 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.35.1 * https://github.com/SeleniumHQ/htmlunit-driver/releases/tag/2.36.0 - htmlunit * http://htmlunit.sourceforge.net/changes-report.html Fix #1001
1 parent 8903ae7 commit c804045

File tree

19 files changed

+125
-58
lines changed

19 files changed

+125
-58
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ If you are programmer/sysadmin or you just feeling that you are able to run a lo
4343
* *Validation*: JSR-303 (Hibernate Validator)
4444
* *Logging*: Slf4j (Logback)
4545
* *Unit tests*: Groovy and Spock Framework (for Java code), jasmine (for JavaScript code)
46-
* *Integration tests*: Selenium2, RobotFramework, WireMock
46+
* *Integration tests*: Selenium3, RobotFramework, WireMock
4747
* *Others*: Lombok, Togglz, WebJars

pom.xml

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -325,45 +325,17 @@
325325
<groupId>org.yaml</groupId>
326326
<artifactId>snakeyaml</artifactId>
327327
</exclusion>
328-
<exclusion>
329-
<groupId>com.codeborne</groupId>
330-
<artifactId>phantomjsdriver</artifactId>
331-
</exclusion>
332-
<exclusion>
333-
<groupId>com.opera</groupId>
334-
<artifactId>operadriver</artifactId>
335-
</exclusion>
336328
<exclusion>
337329
<groupId>io.appium</groupId>
338330
<artifactId>java-client</artifactId>
339331
</exclusion>
340332
<exclusion>
341-
<groupId>io.selendroid</groupId>
342-
<artifactId>selendroid-client</artifactId>
343-
</exclusion>
344-
<exclusion>
345-
<groupId>org.seleniumhq.selenium</groupId>
346-
<artifactId>selenium-edge-driver</artifactId>
347-
</exclusion>
348-
<exclusion>
349-
<groupId>org.seleniumhq.selenium</groupId>
350-
<artifactId>selenium-chrome-driver</artifactId>
333+
<groupId>io.github.bonigarcia</groupId>
334+
<artifactId>webdrivermanager</artifactId>
351335
</exclusion>
352336
<exclusion>
353-
<groupId>org.seleniumhq.selenium</groupId>
354-
<artifactId>selenium-ie-driver</artifactId>
355-
</exclusion>
356-
<exclusion>
357-
<groupId>org.seleniumhq.selenium</groupId>
358-
<artifactId>selenium-safari-driver</artifactId>
359-
</exclusion>
360-
<exclusion>
361-
<groupId>org.seleniumhq.selenium</groupId>
362-
<artifactId>selenium-leg-rc</artifactId>
363-
</exclusion>
364-
<exclusion>
365-
<groupId>org.seleniumhq.selenium</groupId>
366-
<artifactId>selenium-firefox-driver</artifactId>
337+
<groupId>io.selendroid</groupId>
338+
<artifactId>selendroid-client</artifactId>
367339
</exclusion>
368340
<exclusion>
369341
<groupId>com.machinepublishers</groupId>
@@ -505,6 +477,9 @@
505477
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.22.RELEASE/spring-boot-dependencies/pom.xml) -->
506478
<hibernate-validator.version>5.4.2.Final</hibernate-validator.version>
507479

480+
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.22.RELEASE/spring-boot-dependencies/pom.xml) -->
481+
<htmlunit.version>2.36.0</htmlunit.version>
482+
508483
<jacoco.plugin.version>0.8.2</jacoco.plugin.version>
509484
<jasmine.plugin.version>2.2</jasmine.plugin.version>
510485

@@ -554,18 +529,18 @@
554529

555530
<resources.plugin.version>3.1.0</resources.plugin.version>
556531
<robotframework-httprequest.version>0.0.15</robotframework-httprequest.version>
557-
<robotframework-plugin.version>1.4.7</robotframework-plugin.version>
558-
<robotframework-selenium.version>2.53.1.1</robotframework-selenium.version>
559-
<robotframework.version>3.0.4</robotframework.version>
532+
<robotframework-plugin.version>1.5.1</robotframework-plugin.version>
533+
<robotframework-selenium.version>3.141.59.2653</robotframework-selenium.version>
534+
<robotframework.version>3.1.2</robotframework.version>
560535

561536
<!-- Don't forget to update version in the ResourceUrl class and in the src/main/webapp/WEB-INF/views/series/add.html -->
562537
<selectizejs.version>0.12.5</selectizejs.version>
563538

564539
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.22.RELEASE/spring-boot-dependencies/pom.xml) -->
565-
<selenium-htmlunit.version>2.21</selenium-htmlunit.version>
540+
<selenium-htmlunit.version>2.36.0</selenium-htmlunit.version>
566541

567542
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.22.RELEASE/spring-boot-dependencies/pom.xml) -->
568-
<selenium.version>2.53.1</selenium.version>
543+
<selenium.version>3.141.59</selenium.version>
569544

570545
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.22.RELEASE/spring-boot-dependencies/pom.xml) -->
571546
<servlet-api.version>3.1.0</servlet-api.version>

src/main/scripts/ci/filter-out-htmlunit-messages.pl

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,28 @@
88
use warnings;
99

1010
my @regexps = (
11-
# [WARNING] CSS error: 'http://127.0.0.1:8081/public/bootstrap/3.4.1/css/bootstrap.min.css' [5:56298] Error in expression; ':' found after identifier "progid".
12-
qr/\[WARNING\] CSS error: '[^']+' \[[^]]+\] Error in expression; [^\.]+\.\n/,
13-
1411
# [WARNING] CSS error: 'http://127.0.0.1:8081/public/bootstrap/3.4.1/css/bootstrap.min.css' [5:115558] Invalid color "#000\9".
1512
qr/\[WARNING\] CSS error: '[^']+' \[[^]]+\] Invalid color "[^"]+"\.\n/,
1613

1714
# [WARNING] CSS error: 'http://127.0.0.1:8081/public/selectize/0.12.3/css/selectize.bootstrap3.css' [176:3] Error in declaration. '*' is not allowed as first char of a property.
1815
qr/\[WARNING\] CSS error: '[^']+' \[[^]]+\] Error in declaration\. '\*' is not allowed as first char of a property\.\n/,
1916

20-
# [ERROR] runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[http://127.0.0.1:8081/public/jquery/1.9.1/jquery.min.js] line=[4] lineSource=[null] lineOffset=[0]
21-
qr/\[ERROR\] runtimeError: message=\[[^]]+\] sourceName=\[[^]]+\] line=\[[^]]+\] lineSource=\[[^]]+\] lineOffset=\[[^]]+\]\n/,
22-
23-
# [ERROR] runtimeError: message=[An invalid or illegal selector was specified (selector: '[id='sizzle-1487943406281'] [data-selectable]:first' error: Invalid selector: [id="sizzle-1487943406281"] [data-selectable]:first).] sourceName=[http://127.0.0.1:8081/public/jquery/1.9.1/jquery.min.js] line=[4] lineSource=[null] lineOffset=[0]
24-
qr/\[ERROR\] runtimeError: message=\[[^\(]+\(selector: '\[id='sizzle-[^']+'\] \[data-selectable\]:first' error: Invalid selector: \[id="sizzle-[^"]+"\] \[data-selectable\]:first\)\.\] sourceName=\[[^]]+\] line=\[[^]]+\] lineSource=\[[^]]+\] lineOffset=\[[^]]+\]\n/,
25-
26-
# [INFO] Bad input type: "url", creating a text input
2717
# [INFO] Bad input type: "select-one", creating a text input
28-
qr/\[INFO\] Bad input type: "[^"]+", creating a text input\n/
18+
qr/\[INFO\] Bad input type: "[^"]+", creating a text input\n/,
19+
20+
# Google Charts:
21+
# [WARNING] Obsolete content type encountered: 'text/javascript'.
22+
qr/\[WARNING\] Obsolete content type encountered: 'text.javascript'\.\n/,
23+
24+
# Google Charts:
25+
# [WARNING] CSS error: 'https://www.gstatic.com/charts/44/css/core/tooltip.css'
26+
# [3:38] Error in pseudo class or element. (Invalid token " ". Was expecting one of: <IDENT>, ":",
27+
# <FUNCTION_NOT>, <FUNCTION_LANG>, <FUNCTION>.)
28+
qr/\[WARNING\] CSS error: 'https:..www\.gstatic\..*\n/,
29+
30+
# Google Charts:
31+
# [WARNING] CSS warning: 'https://www.gstatic.com/charts/44/css/core/tooltip.css' [3:38] Ignoring the whole rule.
32+
qr/\[WARNING\] CSS warning: 'https:..www\.gstatic\..*\n/
2933
);
3034

3135
foreach my $line (<STDIN>) {

src/test/robotframework/account/activation/misc-anonymous.robot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
*** Settings ***
22
Documentation Verify miscellaneous aspects of account activation from anonymous user
33
Library SeleniumLibrary
4+
Resource ../../selenium.utils.robot
45
Suite Setup Before Test Suite
56
Suite Teardown Close Browser
7+
Test Setup Disable Client Validation
68
Force Tags account activation misc
79

810
*** Test Cases ***
@@ -56,8 +58,13 @@ Before Test Suite
5658
Open Browser ${SITE_URL}/account/activate ${BROWSER}
5759
Register Keyword To Run On Failure Log Source
5860

61+
Disable Client Validation
62+
Remove Element Attribute password required
63+
Remove Element Attribute passwordConfirmation required
64+
5965
Name should not cause an error
6066
[Arguments] ${name}
67+
Disable Client Validation
6168
Input Text id=name ${name}
6269
Submit Form id=activate-account-form
6370
Page Should Not Contain Element id=name.errors

src/test/robotframework/account/activation/validation.robot

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
*** Settings ***
22
Documentation Verify account activation validation scenarios
33
Library SeleniumLibrary
4+
Resource ../../selenium.utils.robot
45
Suite Setup Before Test Suite
56
Suite Teardown Close Browser
7+
Test Setup Disable Client Validation
68
Force Tags account activation validation
79

810
*** Test Cases ***
@@ -103,8 +105,15 @@ Before Test Suite
103105
Open Browser ${SITE_URL}/account/activate ${BROWSER}
104106
Register Keyword To Run On Failure Log Source
105107

108+
Disable Client Validation
109+
Remove Element Attribute login required
110+
Remove Element Attribute password required
111+
Remove Element Attribute passwordConfirmation required
112+
Remove Element Attribute activationKey required
113+
106114
Login should not contain repeated special characters
107-
[Arguments] ${login}
108-
Input Text id=login ${login}
109-
Submit Form id=activate-account-form
110-
Element Text Should Be id=login.errors Login must not contain repetition of hyphen, dot or underscore
115+
[Arguments] ${login}
116+
Disable Client Validation
117+
Input Text id=login ${login}
118+
Submit Form id=activate-account-form
119+
Element Text Should Be id=login.errors Login must not contain repetition of hyphen, dot or underscore

src/test/robotframework/account/authentication/validation.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
*** Settings ***
22
Documentation Verify account authentication validation scenarios
33
Library SeleniumLibrary
4+
Resource ../../selenium.utils.robot
45
Suite Setup Before Test Suite
56
Suite Teardown Close Browser
67
Force Tags account authentication validation
78

89
*** Test Cases ***
910
Authenticate with empty credentials
11+
[Setup] Disable Client Validation
1012
Input Text id=login ${EMPTY}
1113
Input Text id=password ${EMPTY}
1214
Submit Form id=auth-account-form
@@ -23,3 +25,7 @@ Before Test Suite
2325
Open Browser ${SITE_URL}/account/auth ${BROWSER}
2426
Register Keyword To Run On Failure Log Source
2527

28+
Disable Client Validation
29+
Remove Element Attribute login required
30+
Remove Element Attribute password required
31+

src/test/robotframework/collection/add-series/validation.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
Documentation Verify validation of adding a series to collection
33
Library SeleniumLibrary
44
Resource ../../auth.steps.robot
5+
Resource ../../selenium.utils.robot
56
Suite Setup Before Test Suite
67
Suite Teardown Close Browser
78
Force Tags collection validation
89

910
*** Test Cases ***
1011
Add a series without required field
12+
[Setup] Disable Client Validation
1113
Input Text id=number-of-stamps ${EMPTY}
1214
Submit Form id=add-series-form
1315
Element Text Should Be id=number-of-stamps.errors Value must not be empty
@@ -32,3 +34,5 @@ Before Test Suite
3234
# We also need a series with no more than 4 stamps, so the 5 stamps will lead to an error.
3335
Go To ${SITE_URL}/series/2
3436

37+
Disable Client Validation
38+
Remove Element Attribute number-of-stamps required

src/test/robotframework/participant/creation/validation.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
Documentation Verify participant creation validation scenarios
33
Library SeleniumLibrary
44
Resource ../../auth.steps.robot
5+
Resource ../../selenium.utils.robot
56
Suite Setup Before Test Suite
67
Suite Teardown Close Browser
78
Force Tags participant validation
89

910
*** Test Cases ***
1011
Create participant with blank required fields
12+
[Setup] Disable Client Validation
1113
Submit Form id=add-participant-form
1214
Element Text Should Be id=name.errors Value must not be empty
1315

@@ -36,3 +38,5 @@ Before Test Suite
3638
Log In As login=admin password=test
3739
Go To ${SITE_URL}/participant/add
3840

41+
Disable Client Validation
42+
Remove Element Attribute name required

src/test/robotframework/selenium.utils.robot

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ Emailfield Value Should Be
2424
${value}= Get Value ${locator}
2525
Should Be Equal ${expected} ${value}
2626

27+
# We can't use "Select From List By Label" because
28+
# 1) it doesn't work with invisible elements (and selectize.js makes a field invisible)
29+
# 2) selectize.js dynamically creates a list of countries only when we click on a field
30+
Selectize By Value
31+
[Documentation] Select the given value in a select that is using selectize.js by provided id
32+
[Arguments] ${id} ${slug}
33+
Execute Javascript return $('#${id}').selectize()[0].selectize.setValue('${slug}');
34+
2735
Select Country
2836
[Documentation] Select the given value in a select list that is using selectize.js
2937
[Arguments] ${value}
@@ -74,3 +82,8 @@ Select Random Option From List
7482
${size}= Get Length ${options}
7583
${randomIndex}= Evaluate random.randint(0, ${size}-1) modules=random
7684
Select From List By Index ${locator} ${randomIndex}
85+
86+
Remove Element Attribute
87+
[Documentation] Remove an attribute with a specified name from an element identified by its id
88+
[Arguments] ${id} ${name}
89+
Execute Javascript return window.document.getElementById('${id}').removeAttribute('${name}');

src/test/robotframework/series/creation/logic-user.robot

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Create series by filling only required fields
1313
Select From List By Label id=category Sport
1414
Input Text id=quantity 2
1515
Choose File id=image ${MAIN_RESOURCE_DIR}${/}test.png
16+
# Workaround for an invalid form when it contains required file input:
17+
# https://github.com/HtmlUnit/htmlunit/issues/76
18+
Remove Element Attribute image required
1619
Submit Form id=add-series-form
1720
Element Text Should Be id=category_name Sport
1821
Element Text Should Be id=quantity 2
@@ -21,10 +24,13 @@ Create series by filling only required fields
2124

2225
Create series by filling all fields
2326
Select From List By Label id=category Sport
24-
Select Country Italy
27+
Selectize By Value country italy
2528
Input Text id=quantity 3
2629
Unselect Checkbox id=perforated
2730
Choose File id=image ${MAIN_RESOURCE_DIR}${/}test.png
31+
# Workaround for an invalid form when it contains required file input:
32+
# https://github.com/HtmlUnit/htmlunit/issues/76
33+
Remove Element Attribute image required
2834
Click Element id=specify-issue-date-link
2935
Select From List By Value id=day 8
3036
Select From List By Value id=month 9

src/test/robotframework/series/creation/misc-admin.robot

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
Documentation Verify miscellaneous aspects of series creation
33
Library SeleniumLibrary
44
Resource ../../auth.steps.robot
5+
Resource ../../selenium.utils.robot
56
Suite Setup Before Test Suite
67
Suite Teardown Close Browser
78
Force Tags series misc
89

910
*** Test Cases ***
1011
Comment should be stripped from leading and trailing spaces
11-
Click Element id=add-comment-link
12-
Input Text id=comment ${SPACE * 2}example comment${SPACE * 2}
13-
Submit Form id=add-series-form
14-
Textarea Value Should Be id=comment example comment
12+
Disable Client Validation
13+
Click Element id=add-comment-link
14+
Input Text id=comment ${SPACE * 2}example comment${SPACE * 2}
15+
Submit Form id=add-series-form
16+
Textarea Value Should Be id=comment example comment
1517

1618
*** Keywords ***
1719
Before Test Suite
@@ -20,3 +22,5 @@ Before Test Suite
2022
Log In As login=admin password=test
2123
Go To ${SITE_URL}/series/add
2224

25+
Disable Client Validation
26+
Remove Element Attribute quantity required

src/test/robotframework/series/creation/misc-user.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Documentation Verify miscellaneous aspects of series creation
33
Library Collections
44
Library SeleniumLibrary
55
Resource ../../auth.steps.robot
6+
Resource ../../selenium.utils.robot
67
Suite Setup Before Test Suite
78
Suite Teardown Close Browser
89
Force Tags series misc
@@ -69,6 +70,9 @@ Catalog numbers should accept existing numbers
6970
Select From List By Label id=category Sport
7071
Input Text id=quantity 2
7172
Choose File id=image ${MAIN_RESOURCE_DIR}${/}test.png
73+
# Workaround for an invalid form when it contains required file input:
74+
# https://github.com/HtmlUnit/htmlunit/issues/76
75+
Remove Element Attribute image required
7276
Click Element id=add-catalog-numbers-link
7377
Input Text id=michelNumbers 99
7478
Input Text id=scottNumbers 99

src/test/robotframework/series/creation/validation-admin.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
Documentation Verify series creation validation scenarios from admin
33
Library SeleniumLibrary
44
Resource ../../auth.steps.robot
5+
Resource ../../selenium.utils.robot
56
Suite Setup Before Test Suite
67
Suite Teardown Close Browser
8+
Test Setup Disable Client Validation
79
Force Tags series validation
810

911
*** Test Cases ***
@@ -66,3 +68,5 @@ Before Test Suite
6668
Log In As login=admin password=test
6769
Go To ${SITE_URL}/series/add
6870

71+
Disable Client Validation
72+
Remove Element Attribute quantity required

src/test/robotframework/series/creation/validation-user.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
Documentation Verify series creation validation scenarios from a user
33
Library SeleniumLibrary
44
Resource ../../auth.steps.robot
5+
Resource ../../selenium.utils.robot
56
Suite Setup Before Test Suite
67
Suite Teardown Close Browser
8+
Test Setup Disable Client Validation
79
Force Tags series validation
810

911
*** Test Cases ***
@@ -61,6 +63,10 @@ Before Test Suite
6163
Log In As login=coder password=test
6264
Go To ${SITE_URL}/series/add
6365

66+
Disable Client Validation
67+
Remove Element Attribute quantity required
68+
Remove Element Attribute image required
69+
6470
Invalid Catalog Numbers Should Be Rejected
6571
[Arguments] ${catalogNumbers}
6672
# open page each time to be sure that we're starting from the clean state.

0 commit comments

Comments
 (0)