fastlane-old / snapshot

Automate taking localized screenshots of your iOS app on every device
https://fastlane.tools
1.95k stars 140 forks source link

Snapshot with React Native? #352

Closed wootwoot1234 closed 8 years ago

wootwoot1234 commented 8 years ago

Has anyone used snapshot with react native?

When I try to record my clicks in the UI Test I get code that looks like this:

  app/*@START_MENU_TOKEN@*/.otherElements["    \Ue00e Getting Started \Ue00c   \Ue00e Unlimited Foods \Ue00c   \Ue00e Limited Foods \Ue00c "].otherElements["  \Ue00e Getting Started \Ue00c"]/*[[".otherElements[\"       \\Ue00e   \\Ue004   \\Ue00d   \\Ue006     Info       \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c  \"]",".otherElements[\"      \\Ue00e   \\Ue004   \\Ue00d   \\Ue006     Info       \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c  \"]",".otherElements[\"     \\Ue00e   \\Ue004   \\Ue00d   \\Ue006     Info       \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]",".otherElements[\"    \\Ue00e   \\Ue004   \\Ue00d   \\Ue006     Info       \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]",".otherElements[\"    Info       \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]",".otherElements[\"   Info       \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]",".otherElements[\"     \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]",".scrollViews.otherElements[\"    \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]",".otherElements[\"   \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c\"].otherElements[\"  \\Ue00e Getting Started \\Ue00c\"]",".otherElements[\"  \\Ue00e Getting Started \\Ue00c\"]",".otherElements[\"    \\Ue00e Getting Started \\Ue00c   \\Ue00e Unlimited Foods \\Ue00c   \\Ue00e Limited Foods \\Ue00c \"]"],[[[-1,10,8],[-1,7,8],[-1,6,7],[-1,5,6],[-1,4,5],[-1,3,4],[-1,2,3],[-1,1,2],[-1,0,1]],[[-1,10,8],[-1,7,8],[-1,6,7],[-1,5,6],[-1,4,5],[-1,3,4],[-1,2,3],[-1,1,2]],[[-1,10,8],[-1,7,8],[-1,6,7],[-1,5,6],[-1,4,5],[-1,3,4],[-1,2,3]],[[-1,10,8],[-1,7,8],[-1,6,7],[-1,5,6],[-1,4,5],[-1,3,4]],[[-1,10,8],[-1,7,8],[-1,6,7],[-1,5,6],[-1,4,5]],[[-1,10,8],[-1,7,8],[-1,6,7],[-1,5,6]],[[-1,10,8],[-1,7,8],[-1,6,7]],[[-1,10,8],[-1,7,8]],[[-1,9],[-1,8]]],[0,0]]@END_MENU_TOKEN@*/.tap()

and it won't run, it gives errors like: Invalid escape sequence in literal

KrauseFx commented 8 years ago

This seems more like an Xcode / UI Testing issues and is not caused by snapshot itself.

wootwoot1234 commented 8 years ago

@KrauseFx thanks for the response. It's definitely not a snapshot issue. I was hoping someone have encountered this issue and already found a solution.

KrauseFx commented 8 years ago

:+1:

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/2524. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: