FBFailureProofTestCaseTests.m 900 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "FBFailureProofTestCase.h"
  11. #import "FBExceptionHandler.h"
  12. @interface FBFailureProofTestCaseTests : FBFailureProofTestCase
  13. @end
  14. @implementation FBFailureProofTestCaseTests
  15. - (void)setUp
  16. {
  17. [super setUp];
  18. [[XCUIApplication new] launch];
  19. }
  20. - (void)testPreventElementSearchFailure
  21. {
  22. [[XCUIApplication new].buttons[@"kaboom"] tap];
  23. }
  24. - (void)testInactiveAppSearch
  25. {
  26. [[XCUIDevice sharedDevice] pressButton:XCUIDeviceButtonHome];
  27. [[XCUIApplication new].buttons[@"kaboom"] tap];
  28. }
  29. - (void)testPreventAssertFailure
  30. {
  31. XCTAssertNotNil(nil);
  32. }
  33. @end