File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
playwright/src/test/java/com/microsoft/playwright Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 3131import static org .junit .jupiter .api .Assertions .*;
3232
3333public class TestBrowserContextCookies extends TestBase {
34- static boolean isWebkitWindows () {
35- return isWebKit () && isWindows ;
36- }
37-
3834 @ Test
3935 void shouldGetACookie () {
4036 page .navigate (server .EMPTY_PAGE );
@@ -100,6 +96,10 @@ void shouldProperlyReportHttpOnlyCookie() {
10096 assertTrue (cookies .get (0 ).httpOnly );
10197 }
10298
99+ static boolean isWebKitWindows () {
100+ return isWebKit () && getOS () == Utils .OS .WINDOWS ;
101+ }
102+
103103 @ Test
104104 @ DisabledIf (value ="isWebKitWindows" , disabledReason ="fail" )
105105 void shouldProperlyReportStrictSameSiteCookie () {
@@ -192,6 +192,10 @@ void shouldGetCookiesFromMultipleUrls() {
192192 "}]" , cookies );
193193 }
194194
195+ static boolean isWebkitWindows () {
196+ return isWebKit () && isWindows ;
197+ }
198+
195199 @ Test
196200 @ DisabledIf (value ="isWebkitWindows" , disabledReason ="Same site is not implemented in curl" )
197201 void shouldAcceptSameSiteAttribute () {
You can’t perform that action at this time.
0 commit comments