Skip to content

Commit 0c17cd6

Browse files
committed
Fixed issue with Get Cookie logging assertions
There was some missed chnages to the log. In addition, Chrome now has a limit on length of expiry with cookies. Its maximum length is 400 days, as per, https://developer.chrome.com/blog/cookie-max-age-expires/. As such back off the far future date to one just about a year out. Starting to think the hardcoded expiry is better in that one can immediately see it it verse the calculate some date in the future each time the test is run. Will revisit this in the future.
1 parent 26ccf88 commit 0c17cd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

atest/acceptance/keywords/cookies.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ Test Get Cookie Object Value
107107
Test Get Cookie Keyword Logging
108108
[Tags] NoGrid Known Issue Firefox
109109
[Documentation]
110-
... LOG 1:5 ${cookie} = name=another
111-
... value=value
110+
... LOG 1:5 ${cookie} = name=far_future
111+
... value=timemachine
112112
... path=/
113113
... domain=localhost
114114
... secure=False
115115
... httpOnly=False
116-
... expiry=2026-9-15 11:22:33
116+
... expiry=2024-09-15 11:22:33
117117
... extra={'sameSite': 'Lax'}
118118
${cookie} = Get Cookie far_future
119119

@@ -126,4 +126,4 @@ Add Cookies
126126
${tomorrow_thistime_datetime} = Convert Date ${tomorrow_thistime} datetime
127127
Set Suite Variable ${tomorrow_thistime_datetime}
128128
Add Cookie another value expiry=${tomorrow_thistime}
129-
Add Cookie far_future timemachine expiry=1789485753 # 2026-09-15 11:22:33
129+
Add Cookie far_future timemachine expiry=1726413753 # 2024-09-15 11:22:33

0 commit comments

Comments
 (0)