Skip to content

Commit 6c02916

Browse files
committed
fix faild valiation for positive cases
1 parent 939ce54 commit 6c02916

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Disable Client Validation
113113

114114
Login should not contain repeated special characters
115115
[Arguments] ${login}
116+
Disable Client Validation
116117
Input Text id:login ${login}
117118
Submit Form id:activate-account-form
118119
Element Text Should Be id:login.errors Login must not contain repetition of hyphen, dot or underscore

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
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
12+
Disable Client Validation
1113
Click Element id:add-comment-link
1214
Input Text id:comment ${SPACE * 2}example comment${SPACE * 2}
1315
Submit Form id:add-series-form
@@ -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/sales/import/validation.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
Documentation Verify validation scenarios for importing a series sale
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 sales import-sales validation react-related
89

910
*** Test Cases ***
1011
Import a series sale with empty required field
12+
Disable Client Validation
1113
Submit Form id:import-series-sale-form
1214
Wait Until Element Is Visible id:series-sale-url.errors
1315
Element Text Should Be id:series-sale-url.errors Value must not be empty
@@ -31,3 +33,6 @@ Before Test Suite
3133
Register Keyword To Run On Failure Log Source
3234
Log In As login=admin password=test
3335
Go To ${SITE_URL}/series/1
36+
37+
Disable Client Validation
38+
Remove Element Attribute series-sale-url required

0 commit comments

Comments
 (0)