XCUIDeviceHealthCheckTests.m 754 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <XCTest/XCTest.h>
  10. #import "FBIntegrationTestCase.h"
  11. #import "XCUIDevice+FBHealthCheck.h"
  12. #import "XCUIElement.h"
  13. @interface XCUIDeviceHealthCheckTests : FBIntegrationTestCase
  14. @end
  15. @implementation XCUIDeviceHealthCheckTests
  16. - (void)testHealthCheck
  17. {
  18. [self launchApplication];
  19. XCTAssertTrue(self.testedApplication.exists);
  20. XCTAssertTrue([[XCUIDevice sharedDevice] fb_healthCheckWithApplication:self.testedApplication]);
  21. }
  22. @end