Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions WooCommerce/WooCommerceScreenshots/WooCommerceScreenshots.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class WooCommerceScreenshots: XCTestCase {
let app = XCUIApplication()
setupSnapshot(app)
app.launchArguments.append("mocked-network-layer")
app.launchArguments.append("use-mocked-card-present-payment")
app.launchArguments.append("-simulate-stripe-card-reader")
app.launchArguments.append("disable-animations")
app.launchArguments.append("-mocks-push-notification")
Expand Down Expand Up @@ -74,25 +75,27 @@ class WooCommerceScreenshots: XCTestCase {
.goBackToOrderScreen()
.goBackToOrdersScreen()

// POS
try TabNavComponent()
.goToPOSScreen()
.tapAddProduct(productID: 1)
.tapAddProduct(productID: 2)
.thenTakeScreenshot(named: "pos-dashboard", orientation: .landscapeLeft)
.tapConnectReader()
.waitForReaderConnected()
.tapCheckout()
.waitForTotalsLoaded()
.waitForCardPaymentReady()
.thenTakeScreenshot(named: "pos-payment", orientation: .landscapeLeft)
.tapCashPayment()
.tapMarkPaymentComplete()
.waitForPaymentSuccess()
.thenTakeScreenshot(named: "pos-success", orientation: .landscapeLeft)
.tapMenuButton()
.tapExitMenuItem()
.confirmExitPOS()
// POS - iPad only
if UIDevice.current.userInterfaceIdiom == .pad {
try TabNavComponent()
.goToPOSScreen()
.tapAddProduct(productID: 1)
.tapAddProduct(productID: 2)
.thenTakeScreenshot(named: "pos-dashboard", orientation: .landscapeLeft)
.tapConnectReader()
.waitForReaderConnected()
.tapCheckout()
.waitForTotalsLoaded()
.waitForCardPaymentReady()
.thenTakeScreenshot(named: "pos-payment", orientation: .landscapeLeft)
.tapCashPayment()
.tapMarkPaymentComplete()
.waitForPaymentSuccess()
.thenTakeScreenshot(named: "pos-success", orientation: .landscapeLeft)
.tapMenuButton()
.tapExitMenuItem()
.confirmExitPOS()
}

// Products
try TabNavComponent()
Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/default/app_store_screenshot_1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Track sales and
bestselling products
2 changes: 2 additions & 0 deletions fastlane/metadata/default/app_store_screenshot_2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Create orders
on the fly
2 changes: 2 additions & 0 deletions fastlane/metadata/default/app_store_screenshot_3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Take payments
in person
2 changes: 2 additions & 0 deletions fastlane/metadata/default/app_store_screenshot_4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add and edit products
with a touch
1 change: 1 addition & 0 deletions fastlane/metadata/default/app_store_screenshot_5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sell online and in person
1 change: 1 addition & 0 deletions fastlane/metadata/default/app_store_screenshot_6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Track orders and view totals in real time
1 change: 1 addition & 0 deletions fastlane/metadata/default/app_store_screenshot_7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Complete payments quickly and efficiently
2 changes: 2 additions & 0 deletions fastlane/metadata/default/app_store_screenshot_8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Get notified of
every sale
28 changes: 26 additions & 2 deletions fastlane/screenshots.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,37 @@
"screenshot": "iPad Pro 13-inch (M4)-4-light-product-add.png",
"text": "metadata/{locale}/app_store_screenshot_4.txt"
},
// Get notified of every sale
// Sell online and in person
{
"device": "iPad Pro 13-inch (M4)",
"filename": "iPad Pro 13-inch (M4)-05.png",
"background": "appstoreres/assets/ipad-background-1.png",
"screenshot": "iPad Pro 13-inch (M4)-5-dark-order-notification.png",
"screenshot": "iPad Pro 13-inch (M4)-5-dark-pos-dashboard.png",
"text": "metadata/{locale}/app_store_screenshot_5.txt"
},
// Track orders and view totals in real time
{
"device": "iPad Pro 13-inch (M4)",
"filename": "iPad Pro 13-inch (M4)-06.png",
"background": "appstoreres/assets/ipad-background-2.png",
"screenshot": "iPad Pro 13-inch (M4)-6-light-pos-payment.png",
"text": "metadata/{locale}/app_store_screenshot_6.txt"
},
// Complete payments quickly and efficiently
{
"device": "iPad Pro 13-inch (M4)",
"filename": "iPad Pro 13-inch (M4)-07.png",
"background": "appstoreres/assets/ipad-background-1.png",
"screenshot": "iPad Pro 13-inch (M4)-7-dark-pos-success.png",
"text": "metadata/{locale}/app_store_screenshot_7.txt"
},
// Get notified of every sale
{
"device": "iPad Pro 13-inch (M4)",
"filename": "iPad Pro 13-inch (M4)-08.png",
"background": "appstoreres/assets/ipad-background-2.png",
"screenshot": "iPad Pro 13-inch (M4)-8-light-order-notification.png",
"text": "metadata/{locale}/app_store_screenshot_8.txt"
}
]
}