blob: 6354489ac2cbcceaa1eb8000d32f6e3313ef53e4 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
#import "ios/testing/earl_grey/earl_grey_test.h"
#include "url/gurl.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
// Test suite to verify Internet connectivity.
@interface DeviceCheckTestCase : ChromeTestCase
@end
@implementation DeviceCheckTestCase
// Verifies Internet connectivity by navigating to browsingtest.appspot.com.
- (void)testNetworkConnection {
[ChromeEarlGrey
loadURL:GURL("http://browsingtest.appspot.com/googleLogoPage.html")];
[ChromeEarlGrey waitForWebStateContainingText:"some text"];
}
@end