blob: e9f596f6c1030038ed3d50371cf275cbbd5ba931 [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 <XCTest/XCTest.h>
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.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")];
[ChromeEarlGrey waitForWebViewContainingText:"Window1"];
}
@end