Skip to content

Commit 943afba

Browse files
committed
test(series/sales/import): open a page on every test to workaround htmlunit bug.
sendKeys() was failing with "StringIndexOutOfBoundsException: start > length()" exception when we fill a field a second time. Opening a page on every test fixes that as there is no state left from a previous test. Workaround for HtmlUnit/htmlunit#142 Part of #1072
1 parent a16cc30 commit 943afba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/test/robotframework/series/sales/import/logic.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Resource ../../../auth.steps.robot
55
Resource ../../../selenium.utils.robot
66
Suite Setup Before Test Suite
77
Suite Teardown Close Browser
8+
Test Setup Before Test
89
Force Tags series sales import-sales logic react-related
910

1011
*** Test Cases ***
@@ -29,4 +30,6 @@ Before Test Suite
2930
Open Browser ${SITE_URL}/account/auth ${BROWSER}
3031
Register Keyword To Run On Failure Log Source
3132
Log In As login=admin password=test
33+
34+
Before Test
3235
Go To ${SITE_URL}/series/1

src/test/robotframework/series/sales/import/validation.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Resource ../../../auth.steps.robot
55
Resource ../../../selenium.utils.robot
66
Suite Setup Before Test Suite
77
Suite Teardown Close Browser
8+
Test Setup Before Test
89
Force Tags series sales import-sales validation react-related
910

1011
*** Test Cases ***
@@ -32,6 +33,8 @@ Before Test Suite
3233
Open Browser ${SITE_URL}/account/auth ${BROWSER}
3334
Register Keyword To Run On Failure Log Source
3435
Log In As login=admin password=test
36+
37+
Before Test
3538
Go To ${SITE_URL}/series/1
3639

3740
Disable Client Validation

0 commit comments

Comments
 (0)