guardianproject / orbot-apple

Orbot VPN app for iOS
MIT License
186 stars 34 forks source link

(Screenshot) Tests Fail #49

Closed johnhess closed 1 year ago

johnhess commented 1 year ago

Running tests from the CLI and from Xcode fails. Commenting out the offending line in the error below causes the tests to complete successfully.

All tests
Test Suite Screenshots.xctest started
Screenshots
    ✗ testScreenshots, Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10008 "No matches found for Elements matching predicate '"transport_3" IN identifiers' from input {(
    ✗ testScreenshots, Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10008 "No matches found for Elements matching predicate '"transport_3" IN identifiers' from input {(
    ✗ testScreenshots, Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10008 "No matches found for Elements matching predicate '"transport_3" IN identifiers' from input {(

Screenshots.Screenshots
  testScreenshots, Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10008 "No matches found for Elements matching predicate '"transport_3" IN identifiers' from input {(
  /Users/johnhess/Dropbox/Guardian/orbot-apple/Screenshots/Screenshots.swift:62

        app.tables.cells["transport_3"].tap()

  testScreenshots, Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10008 "No matches found for Elements matching predicate '"transport_3" IN identifiers' from input {(
  /Users/johnhess/Dropbox/Guardian/orbot-apple/Screenshots/Screenshots.swift:62

        app.tables.cells["transport_3"].tap()

  testScreenshots, Failed to Error Domain=com.apple.dt.xctest.ui-testing.error Code=10008 "No matches found for Elements matching predicate '"transport_3" IN identifiers' from input {(
  /Users/johnhess/Dropbox/Guardian/orbot-apple/Screenshots/Screenshots.swift:62

        app.tables.cells["transport_3"].tap()

     Executed 3 tests, with 3 failures (0 unexpected) in 63.839 (63.840) seconds
tladesignz commented 1 year ago

Ok, fixed it for you now.