-
Notifications
You must be signed in to change notification settings - Fork 371
feat: Introduce maestro for UI testing #5013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
abb16c7
add rc-maestro with tests
facumenzella e5d2cc1
point to remote
facumenzella 9c7db35
add promo-offer-primary-button
facumenzella 86b84e9
Merge branch 'main' into feat/maestro-ios
facumenzella fdf6948
move mise.toml to root
facumenzella 480ea9a
Merge branch 'main' into feat/maestro-ios
facumenzella 283e40f
added change plans test
facumenzella 0b98d7b
follow spm conventions + remove test files
facumenzella 7f5e1bc
add manage_subscriptions test
facumenzella 2f06919
add see all purchases test
facumenzella ed4e9ef
added xccondig
facumenzella b2da504
renamed to Local.xcconfig instead of Maestro.xcconfig
facumenzella 0e34219
renamed
facumenzella e1d10b2
deleted Derived folder
facumenzella bf36e62
delete .swiftpm/xcode/xcshareddata/xcschemes/RevenueCat-Package.xcscheme
facumenzella 09c6e1b
Merge branch 'main' into feat/maestro-ios
facumenzella 57337c1
dont override default xcconfig
facumenzella ce5c2c0
delete theme test
facumenzella 4a4f6a8
find implicit deps
facumenzella a00e55f
Merge branch 'main' into feat/maestro-ios
facumenzella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Xcode ### | ||
# Xcode | ||
# | ||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | ||
|
||
## User settings | ||
xcuserdata/ | ||
|
||
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) | ||
*.xcscmblueprint | ||
*.xccheckout | ||
|
||
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) | ||
build/ | ||
DerivedData/ | ||
*.moved-aside | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
|
||
### Xcode Patch ### | ||
*.xcodeproj/* | ||
!*.xcodeproj/project.pbxproj | ||
!*.xcodeproj/xcshareddata/ | ||
!*.xcworkspace/contents.xcworkspacedata | ||
/*.gcno | ||
|
||
### Projects ### | ||
*.xcodeproj | ||
*.xcworkspace | ||
|
||
### Tuist derived files ### | ||
graph.dot | ||
Derived/ | ||
|
||
### Tuist managed dependencies ### | ||
Tuist/.build | ||
|
||
### xcconfig | ||
**/Local.xcconfig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import ProjectDescription | ||
|
||
let project = Project( | ||
name: "Maestro", | ||
organizationName: "RevenueCat", | ||
settings: .settings( | ||
configurations: [ | ||
.debug(name: "Debug", xcconfig: .relativeToManifest("rc-maestro/Resources/Local.xcconfig")) | ||
], | ||
defaultSettings: .essential | ||
), | ||
targets: [ | ||
.target( | ||
name: "Maestro-Debug", | ||
destinations: .iOS, | ||
product: .app, | ||
bundleId: "com.revenuecat.maestro.ios", | ||
deploymentTargets: .iOS("17.0"), | ||
infoPlist: .extendingDefault( | ||
with: [ | ||
"UILaunchScreen": [ | ||
"UIColorName": "", | ||
"UIImageName": "", | ||
], | ||
"REVENUECAT_API_KEY": "$(REVENUECAT_API_KEY)" | ||
] | ||
), | ||
sources: ["rc-maestro/Sources/**/*.swift"], | ||
resources: [ | ||
"rc-maestro/Resources/**/*.xcassets", | ||
], | ||
dependencies: [ | ||
.external(name: "RevenueCat"), | ||
.external(name: "RevenueCatUI"), | ||
.sdk(name: "StoreKit", type: .framework, status: .required) | ||
] | ||
) | ||
], | ||
schemes: [ | ||
.scheme( | ||
name: "Maestro-Debug", | ||
shared: true, | ||
hidden: false, | ||
buildAction: .buildAction(targets: ["Maestro-Debug"], findImplicitDependencies: true), | ||
runAction: .runAction( | ||
configuration: "Debug", | ||
executable: "Maestro-Debug", | ||
options: .options( | ||
storeKitConfigurationPath: "rc-maestro/Resources/StoreKit/StoreKitConfigDefault.storekit" | ||
) | ||
) | ||
) | ||
], | ||
additionalFiles: [ | ||
"rc-maestro/Resources/**/Local.xcconfig.sample", | ||
"rc-maestro/Resources/**/Local.xcconfig" | ||
] | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ProjectDescription | ||
|
||
let tuist = Tuist(project: .tuist()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version: 6.0 | ||
@preconcurrency import PackageDescription | ||
|
||
#if TUIST | ||
import ProjectDescription | ||
|
||
let packageSettings = PackageSettings( | ||
productTypes: [ | ||
"RevenueCat": .framework, | ||
"RevenueCatUI": .framework // default is .staticFramework | ||
] | ||
) | ||
|
||
#endif | ||
|
||
let package = Package( | ||
name: "Dependencies", | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/RevenueCat/purchases-ios-spm", | ||
branch: "main" | ||
), | ||
] | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# config.yaml | ||
flows: | ||
- customer_center/promo_offer/* |
13 changes: 13 additions & 0 deletions
13
Examples/rc-maestro/maestro/customer_center/change_plans/customer_center_change_plans.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
--- | ||
- launchApp | ||
- runFlow: | ||
file: "../../utils/buy_product.yaml" | ||
env: | ||
PRODUCT_ID: "maestro.weekly.tests" | ||
- runFlow: "../../utils/open_customer_center.yaml" | ||
- tapOn: "Change plans" | ||
- tapOn: "Maestro Montly Tests (1 month)" | ||
- tapOn: Subscribe | ||
- tapOn: Ok |
8 changes: 8 additions & 0 deletions
8
...stro/customer_center/manage_subscriptions/customer_center_manage_subscriptions_empty.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
--- | ||
- launchApp | ||
- runFlow: "../../utils/open_customer_center.yaml" | ||
- assertVisible: "No subscriptions found" | ||
- tapOn: | ||
id: "xmark" |
10 changes: 10 additions & 0 deletions
10
...r_center/manage_subscriptions/customer_center_manage_subscriptions_restore_purchases.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
--- | ||
- launchApp | ||
- runFlow: "../../utils/open_customer_center.yaml" | ||
- tapOn: "Restore past purchases" | ||
- assertVisible: "No past purchases" | ||
- tapOn: "Dismiss" | ||
- tapOn: | ||
id: "xmark" |
14 changes: 14 additions & 0 deletions
14
...r_center/manage_subscriptions/customer_center_manage_subscriptions_see_all_purchases.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
--- | ||
- launchApp | ||
- runFlow: | ||
file: "../../utils/buy_product.yaml" | ||
env: | ||
PRODUCT_ID: "maestro.weekly.tests" | ||
- runFlow: "../../utils/open_customer_center.yaml" | ||
- tapOn: "See all purchases" | ||
- assertVisible: "ACTIVE SUBSCRIPTIONS" | ||
- tapOn: Maestro Weekly Tests | ||
- assertVisible: Active | ||
|
15 changes: 15 additions & 0 deletions
15
...es/rc-maestro/maestro/customer_center/promo_offer/customer_center_accept_promo_offer.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
--- | ||
- launchApp | ||
- runFlow: | ||
file: "../../utils/buy_product.yaml" | ||
env: | ||
PRODUCT_ID: "maestro.weekly.tests" | ||
- runFlow: "../../utils/open_customer_center.yaml" | ||
- tapOn: "Cancel Subscription" | ||
- tapOn: "Too expensive" | ||
- tapOn: | ||
id: "promo-offer-primary-button" | ||
- tapOn: Subscribe | ||
- tapOn: Ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
inputText: ${PRODUCT_ID} | ||
|
||
--- | ||
|
||
- tapOn: "Buy something" | ||
- tapOn: "Buy ${PRODUCT_ID}" | ||
- tapOn: "Subscribe" | ||
- tapOn: "Ok" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
appId: com.revenuecat.maestro.ios | ||
|
||
--- | ||
- tapOn: "Present Customer Center" |
11 changes: 11 additions & 0 deletions
11
Examples/rc-maestro/rc-maestro/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
Examples/rc-maestro/rc-maestro/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "76x76" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "76x76" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "83.5x83.5" | ||
}, | ||
{ | ||
"idiom" : "ios-marketing", | ||
"scale" : "1x", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Examples/rc-maestro/rc-maestro/Resources/Assets.xcassets/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.