2020import static org .assertj .core .api .Assertions .assertThat ;
2121import static org .junit .jupiter .api .Assumptions .assumeTrue ;
2222import static org .openqa .selenium .testing .drivers .Browser .ALL ;
23+ import static org .openqa .selenium .testing .drivers .Browser .CHROME ;
24+ import static org .openqa .selenium .testing .drivers .Browser .FIREFOX ;
2325import static org .openqa .selenium .testing .drivers .Browser .IE ;
2426import static org .openqa .selenium .testing .drivers .Browser .SAFARI ;
2527
3234import org .openqa .selenium .environment .DomainHelper ;
3335import org .openqa .selenium .testing .Ignore ;
3436import org .openqa .selenium .testing .JupiterTestBase ;
37+ import org .openqa .selenium .testing .NotWorkingInRemoteBazelBuilds ;
3538import org .openqa .selenium .testing .NotYetImplemented ;
3639import org .openqa .selenium .testing .SwitchToTopAfterTest ;
3740
@@ -81,6 +84,7 @@ public void testShouldGetCookieByName() {
8184
8285 @ Test
8386 @ NotYetImplemented (SAFARI )
87+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
8488 public void testShouldBeAbleToAddCookie () {
8589 String key = generateUniqueKey ();
8690 String value = "foo" ;
@@ -200,6 +204,8 @@ public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs() {
200204 @ SwitchToTopAfterTest
201205 @ Test
202206 @ Ignore (SAFARI )
207+ @ NotWorkingInRemoteBazelBuilds (CHROME )
208+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
203209 public void testGetCookiesInAFrame () {
204210 driver .get (domainHelper .getUrlForFirstValidHostname ("/common/animals" ));
205211 Cookie cookie1 = new Cookie .Builder ("fish" , "cod" ).path ("/common/animals" ).build ();
@@ -239,6 +245,7 @@ public void testShouldNotGetCookieOnDifferentDomain() {
239245
240246 @ Test
241247 @ NotYetImplemented (SAFARI )
248+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
242249 public void testShouldBeAbleToAddToADomainWhichIsRelatedToTheCurrentDomain () {
243250 String cookieName = "name" ;
244251 assertCookieIsNotPresentWithName (cookieName );
@@ -263,6 +270,7 @@ public void testsShouldNotGetCookiesRelatedToCurrentDomainWithoutLeadingPeriod()
263270 }
264271
265272 @ Test
273+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
266274 void testShouldBeAbleToIncludeLeadingPeriodInDomainName () {
267275 String cookieName = "name" ;
268276 assertCookieIsNotPresentWithName (cookieName );
@@ -277,6 +285,7 @@ void testShouldBeAbleToIncludeLeadingPeriodInDomainName() {
277285
278286 @ Test
279287 @ NotYetImplemented (SAFARI )
288+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
280289 public void testShouldBeAbleToSetDomainToTheCurrentDomain () throws Exception {
281290 URI url = new URI (driver .getCurrentUrl ());
282291 String host = url .getHost () + ":" + url .getPort ();
@@ -291,6 +300,8 @@ public void testShouldBeAbleToSetDomainToTheCurrentDomain() throws Exception {
291300
292301 @ Test
293302 @ NotYetImplemented (SAFARI )
303+ @ NotWorkingInRemoteBazelBuilds (CHROME )
304+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
294305 public void testShouldWalkThePathToDeleteACookie () {
295306 Cookie cookie1 = new Cookie .Builder ("fish" , "cod" ).build ();
296307 driver .manage ().addCookie (cookie1 );
@@ -320,6 +331,7 @@ public void testShouldWalkThePathToDeleteACookie() {
320331
321332 @ Test
322333 @ NotYetImplemented (SAFARI )
334+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
323335 public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie () throws Exception {
324336 URI uri = new URI (driver .getCurrentUrl ());
325337 String host = String .format ("%s:%d" , uri .getHost (), uri .getPort ());
@@ -335,6 +347,8 @@ public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie() throws
335347
336348 @ Test
337349 @ NotYetImplemented (SAFARI )
350+ @ NotWorkingInRemoteBazelBuilds (CHROME )
351+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
338352 public void testCookieEqualityAfterSetAndGet () {
339353 driver .get (domainHelper .getUrlForFirstValidHostname ("animals" ));
340354
@@ -379,6 +393,8 @@ public void testRetainsCookieExpiry() {
379393 @ Test
380394 @ Ignore (IE )
381395 @ Ignore (SAFARI )
396+ @ NotWorkingInRemoteBazelBuilds (CHROME )
397+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
382398 public void canHandleSecureCookie () {
383399 driver .get (domainHelper .getSecureUrlForFirstValidHostname ("animals" ));
384400
@@ -395,6 +411,8 @@ public void canHandleSecureCookie() {
395411 @ Test
396412 @ Ignore (IE )
397413 @ Ignore (SAFARI )
414+ @ NotWorkingInRemoteBazelBuilds (CHROME )
415+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
398416 public void testRetainsCookieSecure () {
399417 driver .get (domainHelper .getSecureUrlForFirstValidHostname ("animals" ));
400418
@@ -411,6 +429,8 @@ public void testRetainsCookieSecure() {
411429
412430 @ Test
413431 @ Ignore (SAFARI )
432+ @ NotWorkingInRemoteBazelBuilds (CHROME )
433+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
414434 public void canHandleHttpOnlyCookie () {
415435 Cookie addedCookie =
416436 new Cookie .Builder ("fish" , "cod" ).path ("/common/animals" ).isHttpOnly (true ).build ();
@@ -424,6 +444,8 @@ public void canHandleHttpOnlyCookie() {
424444
425445 @ Test
426446 @ Ignore (SAFARI )
447+ @ NotWorkingInRemoteBazelBuilds (CHROME )
448+ @ NotWorkingInRemoteBazelBuilds (FIREFOX )
427449 public void testRetainsHttpOnlyFlag () {
428450 Cookie addedCookie =
429451 new Cookie .Builder ("fish" , "cod" ).path ("/common/animals" ).isHttpOnly (true ).build ();
0 commit comments