Skip to content

Commit eea629c

Browse files
authored
Merge pull request #1973 from yuriverweij/bugfix/get-cookies-atest
Update cookie validation regex in Get Cookies test
2 parents 8ef4b25 + 54ba867 commit eea629c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

atest/acceptance/keywords/cookies.robot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ Library DateTime
99
*** Test Cases ***
1010
Get Cookies
1111
${cookies}= Get Cookies
12+
Should Contain ${cookies} test=seleniumlibrary
13+
Should Contain ${cookies} another=value
14+
Should Contain ${cookies} far_future=timemachine
1215
Should Match Regexp ${cookies}
13-
... ^(test=seleniumlibrary; another=value)|(another=value; test=seleniumlibrary)$
16+
... ^(?:test=seleniumlibrary|another=value|far_future=timemachine)(?:; (?:test=seleniumlibrary|another=value|far_future=timemachine)){2}$
1417

1518
Get Cookies As Dict
1619
${cookies}= Get Cookies as_dict=True

0 commit comments

Comments
 (0)