Skip to content

Commit

Permalink
Adopts iPad Pro 12.9" (4th generation) for producing screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLB committed May 2, 2021
1 parent 893401f commit d12029b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
21 changes: 18 additions & 3 deletions fastlane/Snapfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
###################
# piwigoGetPiwigo #
###################
# Installation:
# cd '/Users/lelievre/Privé - GitHub/Piwigo-Mobile'
# sudo gem install fastlane -NV
# fastlane init
# fastlane init swift
#
# export LC_ALL=en_US.UTF-8
# export LANG=en_US.UTF-8
# Create a ./Gemfile in the root directory of your project
# sudo /usr/bin/bundle update
# sudo /usr/bin/bundle install
#
# To update fastlane:
# sudo /usr/bin/bundle update fastlane
#
# To launch fastlane:
# bundle exec fastlane snapshot --number_of_retries 0 --skip_open_summary
# bundle exec fastlane snapshot --number_of_retries 1 --skip_open_summary
#
# To upload screenshots
# bundle exec fastlane deliver
#
# A list of devices you want to take the screenshots from
devices([
"iPhone SE (1st generation)", # 4-inch
# "iPhone SE (1st generation)", # 4-inch
# "iPhone 8", # 4.7-inch
# "iPhone 8 Plus", # 5.5-inch
# "iPhone 11 Pro", # 5.8-inch
Expand All @@ -18,7 +33,7 @@ devices([
# "iPad Pro (10.5-inch)", # 10.5-inch
# "iPad Pro (12.9-inch) (2nd generation)", # 12.9-inch
# "iPad Pro (11-inch) (2nd generation)", # 11-inch
# "iPad Pro (12.9-inch) (3rd generation)" # 12.9-inch
"iPad Pro (12.9-inch) (4th generation)" # 12.9-inch
])

# ["pt", "pt_BR"] # Portuguese with Brazilian locale
Expand Down
4 changes: 2 additions & 2 deletions piwigoAppStore/piwigoAppStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class piwigoAppStore: XCTestCase {
sleep(2)
app.images.element(boundBy: 0).pinch(withScale: 1.17, velocity: 2.0)
}
else if deviceType == "iPad Pro 3 12.9\"" {
else if deviceType == "iPad Pro 4 12.9\"" {
app.collectionViews.children(matching: .cell).element(boundBy: 26).tap()
sleep(2)
app.images.element(boundBy: 0).pinch(withScale: 1.17, velocity: 2.0)
Expand Down Expand Up @@ -425,7 +425,7 @@ class piwigoAppStore: XCTestCase {
sleep(2)
app.images.element(boundBy: 0).pinch(withScale: 1.17, velocity: 2.0)
}
else if deviceType == "iPad Pro 3 12.9\"" {
else if deviceType == "iPad Pro 4 12.9\"" {
app.collectionViews.children(matching: .cell).element(boundBy: 13).tap()
sleep(2)
app.images.element(boundBy: 0).pinch(withScale: 1.17, velocity: 2.0)
Expand Down

0 comments on commit d12029b

Please sign in to comment.