Commit 7af7a75d authored by Romain Hunault's avatar Romain Hunault
Browse files

Hotfixes

parent c0e2fde9
Pipeline #182944 passed with stage
in 4 minutes and 13 seconds
......@@ -28,7 +28,8 @@ mkdir -p $LOCAL_FOLDER
# Default Grid
adb shell input keyevent 3 # KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
adb shell "screencap -p > /sdcard/$app/$language/grid_1.png"
sleep 1
adb shell "screencap -p > $DEVICE_FOLDER/grid_1.png"
# Folder
adb shell input keyevent 3 # KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
......@@ -40,7 +41,8 @@ adb shell input keyevent 3 # KEYCODE_HOME list https://developer.android.com/ref
sleep 1
adb shell input tap 150 1200
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/folder_1.png"
adb shell "screencap -p > $DEVICE_FOLDER/folder_1.png"
# shortcut_installation
adb shell input keyevent 3 # KEYCODE_HOME list https://developer.android.com/reference/android/view/KeyEvent.html
sleep 1
......@@ -78,14 +80,15 @@ adb shell input keyevent 4
# Widgets
adb shell input keyevent 3
sleep 1
adb shell input keyevent 3
sleep 1
adb shell input swipe 180 1500 1100 1500
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/widget_1.png"
adb shell "screencap -p > $DEVICE_FOLDER/widget_1.png"
adb shell input swipe 600 2100 600 300
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/widget_2.png"
adb shell "screencap -p > $DEVICE_FOLDER/widget_2.png"
# Edit widget
adb shell input keyevent 3
......@@ -96,10 +99,10 @@ adb shell input swipe 600 2100 600 300
sleep 1
adb shell input tap 550 2050
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/edit_widget_1.png"
adb shell "screencap -p > $DEVICE_FOLDER/edit_widget_1.png"
adb shell input tap 550 800
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/edit_widget_2.png"
adb shell "screencap -p > $DEVICE_FOLDER/edit_widget_2.png"
# Weather widget settings
adb shell input keyevent 3
......@@ -112,26 +115,26 @@ adb shell input swipe 600 2100 600 300
sleep 1
adb shell input tap 1000 1300
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_1.png"
adb shell "screencap -p > $DEVICE_FOLDER/weather_widget_settings_1.png"
adb shell input tap 600 650
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_2.png"
adb shell "screencap -p > $DEVICE_FOLDER/weather_widget_settings_2.png"
adb shell input keyevent 4 # KEYCODE_BACK
sleep 1
adb shell input tap 600 850
sleep 1
adb shell input tap 600 1000
sleep 1
adb shell "screencap -p >/sdcard/$app/$language/weather_widget_settings_3.png"
adb shell "screencap -p >$DEVICE_FOLDER/weather_widget_settings_3.png"
adb shell input tap 550 1050
sleep 1
adb shell input text "paris"
sleep 1
adb shell input tap 900 1380
sleep 0.5
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_4.png"
sleep 0.01
adb shell "screencap -p > $DEVICE_FOLDER/weather_widget_settings_4.png"
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_5.png"
adb shell "screencap -p > $DEVICE_FOLDER/weather_widget_settings_5.png"
adb shell input keyevent 4
adb shell input keyevent 67
adb shell input keyevent 67
......@@ -142,12 +145,12 @@ adb shell input text "qwerty"
sleep 1
adb shell input tap 900 1380
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_6.png"
adb shell "screencap -p > $DEVICE_FOLDER/weather_widget_settings_6.png"
adb shell input keyevent 4
sleep 1
adb shell input tap 600 1350
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/weather_widget_settings_7.png"
adb shell "screencap -p > $DEVICE_FOLDER/weather_widget_settings_7.png"
# Search
adb shell input keyevent 3
......@@ -155,7 +158,7 @@ adb shell input keyevent 3
sleep 1
adb shell input swipe 600 1200 600 1700
sleep 1
adb shell "screencap -p > /sdcard/$app/$language/search_1.png"
adb shell "screencap -p > $DEVICE_FOLDER/search_1.png"
# Download screenshots
adb shell input keyevent 3
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment