Coder Social home page Coder Social logo

kanecheshire / biometricautomationdemo Goto Github PK

View Code? Open in Web Editor NEW
61.0 6.0 7.0 20 KB

Dependency free iOS biometric automation example.

Swift 75.63% Objective-C 24.37%
biometrics touch-id face-id faceid touchid ios automation testing xctest xcui

biometricautomationdemo's People

Contributors

kanecheshire avatar lvogelzang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

biometricautomationdemo's Issues

UI tests crash because of missing NSFaceIDUsageDescription key in Info.plist

The UI tests are crashing because the NSFaceIDUsageDescription key hasn't been specified in the project's Info.plist (also it needs to be handled in the UI tests i.e. accepting the authorisation dialog).

I only realised this when writing UI tests for TABTestKit - I thought it may have something to do with the bridging header, but upon digging deeper into the stack trace, I noticed the text __CRASHING_DUE_TO_PRIVACY_VIOLATION__ and then it hit me - I forgot to include the NSFaceIDUsageDescription key! I checked this demo project and noticed it's missing it as well, so the UI tests will crash unless its fixed.

Surprisingly the tests pass in the end if you leave it for a minute: tearDown takes about 60 seconds and then the tests pass ๐Ÿค” Seems like a bug in Xcode, this shouldn't be happening!

Cancel button not tappable in Xcode 10.1

In Xcode 10.1, XCUI can't find the cancel button when failing biometric authentication.

I've checked in Xcode 10.2 beta and it's working fine, plus there's a workaround where you can press the home button (even on an iPhone X simulator) to dismiss the prompt:

XCUIDevice.shared.press(.home)

Creating an issue for visibility incase anyone else has run into this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.