Skip to content

Commit 2b644c0

Browse files
aaltatpekkaklarck
authored andcommitted
Refactored test
1 parent 17a24ff commit 2b644c0

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

test/acceptance/keywords/cookies.robot

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,41 @@ Get Cookie Expiry Set By Selenium
4949
Should Be Equal As Integers ${cookie.expiry} ${date}
5050
[Teardown] Delete All Cookies
5151

52-
Test Get Cookie Object
52+
Test Get Cookie Object Expiry
5353
${cookie} = Get Cookie another
5454
${date} = Convert Date 2027-09-28 16:21:35 epoch
55+
Should Be Equal As Integers ${cookie.expiry} ${date}
56+
57+
Test Get Cookie Object Domain
58+
${cookie} = Get Cookie another
5559
Should Be Equal ${cookie.domain} localhost
56-
Should Be Equal ${cookie.expiry} ${date}
60+
61+
Test Get Cookie Object HttpOnly
62+
${cookie} = Get Cookie another
5763
Should Be Equal ${cookie.httpOnly} ${False}
64+
65+
Test Get Cookie Object Name
66+
${cookie} = Get Cookie another
5867
Should Be Equal ${cookie.name} another
68+
69+
Test Get Cookie Object Path
70+
${cookie} = Get Cookie another
5971
Should Be Equal ${cookie.path} /
72+
73+
Test Get Cookie Object Secure
74+
${cookie} = Get Cookie another
6075
Should Be Equal ${cookie.secure} ${False}
76+
77+
Test Get Cookie Object Value
78+
${cookie} = Get Cookie another
6179
Should Be Equal ${cookie.value} value
80+
81+
Test Get Cookie Object Full_info
82+
${cookie} = Get Cookie another
6283
Should Contain ${cookie.full_info} domain=localhost
6384
Should Contain ${cookie.full_info} secure=False
6485
Should Contain ${cookie.full_info} value=value
65-
Should Contain ${cookie.full_info} expiry=1822137695
86+
Should Contain ${cookie.full_info} expiry=
6687
Should Contain ${cookie.full_info} path=/
6788
Should Contain ${cookie.full_info} httpOnly=False
6889
Should Contain ${cookie.full_info} name=another

0 commit comments

Comments
 (0)