@@ -39,16 +39,14 @@ module WebDriver
39
39
expect ( cookie [ :secure ] ) . to be ( false )
40
40
end
41
41
42
- it 'sets samesite property of Default by default' ,
43
- except : [ { browser : %i[ chrome edge ] ,
44
- reason : 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=3732' } ,
45
- { browser : :firefox ,
46
- reason : 'https://github.com/mozilla/geckodriver/issues/1841' } ] ,
42
+ it 'sets samesite property of Lax by default' ,
43
+ except : { browser : :firefox ,
44
+ reason : 'https://github.com/mozilla/geckodriver/issues/1841' } ,
47
45
only : { browser : %i[ chrome edge firefox ] } do
48
46
driver . manage . add_cookie name : 'samesite' ,
49
47
value : 'default'
50
48
51
- expect ( driver . manage . cookie_named ( 'samesite' ) [ :same_site ] ) . to eq ( 'Default ' )
49
+ expect ( driver . manage . cookie_named ( 'samesite' ) [ :same_site ] ) . to eq ( 'Lax ' )
52
50
end
53
51
54
52
it 'respects path' do
@@ -90,10 +88,8 @@ module WebDriver
90
88
end
91
89
92
90
it 'does not allow setting on a subdomain from parent domain' ,
93
- except : { browser : :chrome ,
94
- reason : 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=3734' } ,
95
91
exclusive : { driver : :none ,
96
- reason : 'Can only be tested on site with subdomains' } do
92
+ reason : 'Can not run on our test server; needs subdomains' } do
97
93
driver . get ( 'https://saucelabs.com' )
98
94
99
95
expect {
@@ -113,10 +109,11 @@ module WebDriver
113
109
end
114
110
115
111
it 'does not add secure cookie when http' ,
116
- except : [ { browser : :firefox ,
117
- reason : 'https://github.com/mozilla/geckodriver/issues/1840' } ,
118
- { browser : %i[ chrome edge ] ,
119
- reason : 'https://bugs.chromium.org/p/chromium/issues/detail?id=1177877#c7' } ] do
112
+ except : { browser : :firefox ,
113
+ reason : 'https://github.com/mozilla/geckodriver/issues/1840' } ,
114
+ exclusive : { driver : :none ,
115
+ reason : 'Cannot be tested on localhost' } do
116
+ driver . get 'http://watir.com'
120
117
driver . manage . add_cookie name : 'secure' ,
121
118
value : 'http' ,
122
119
secure : true
0 commit comments