Skip to content

Commit

Permalink
tags
Browse files Browse the repository at this point in the history
  • Loading branch information
henninghall committed Dec 12, 2023
1 parent 124146a commit d73d92a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }}
app-file: ./examples/Rn071/ios/DerivedData/Build/Products/Release-iphonesimulator/Rn071.app
mapping-file: ./examples/Rn071/ios/DerivedData/Build/Products/Release-iphonesimulator/Rn071.app.dSYM
workspace: .maestro/ios/
include-tags: ios

- name: Upload logs when workflow failed
uses: actions/upload-artifact@v3
Expand Down
34 changes: 18 additions & 16 deletions .maestro/android/display-text.yml → .maestro/display-text.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,70 @@
appId: com.rn069
tags:
- android
---
- runFlow:
file: ../utils/set-timezone.yml
file: utils/set-timezone.yml
env:
REGION: Sweden
GMT: GMT+01:00
STATE: ''

- runFlow: ../utils/launch.yml
- runFlow: utils/launch.yml

# test: minuteInterval rounding should round with floor
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: minuteInterval
VALUE: 5
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: date
VALUE: '2000-01-01T00:34:00+01:00'
- runFlow: ../utils/swipe-wheel-1.yml
- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-01-02 00:30:00'

- runFlow: ../utils/reset.yml
- runFlow: utils/reset.yml

# test: can have initial date in past
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: maximumDate
VALUE: undefined
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: minimumDate
VALUE: undefined
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: date
VALUE: '1999-01-01'
- runFlow: ../utils/swipe-wheel-1.yml
- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '1999-01-02 01:00:00'

- runFlow: ../utils/reset.yml
- runFlow: utils/reset.yml

# test: display text
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: locale
VALUE: vi-VN
- runFlow: ../utils/swipe-wheel-1.yml
- runFlow: utils/swipe-wheel-1.yml
- assertVisible:
id: dateStringOutput
text: 'CN 2 thg 11200 SA '

# Should be possible to use picker with invalid locale
- runFlow: ../utils/launch.yml
- runFlow: utils/launch.yml
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: locale
VALUE: xx
- runFlow: ../utils/swipe-wheel-1.yml
- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-01-02 00:00:00'
10 changes: 6 additions & 4 deletions .maestro/ios/ios.yml → .maestro/ios.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
appId: com.rn069
tags:
- ios
---
# test: can use inline picker
- runFlow: ../utils/launch.yml
- runFlow: utils/launch.yml
- runFlow:
file: ../utils/change-prop.yml
file: utils/change-prop.yml
env:
PROP: locale
VALUE: vi-VN
- runFlow: ../utils/swipe-wheel-1.yml
- runFlow: utils/swipe-wheel-1.yml
- assertVisible:
text: '2000-01-01 01:00:00'

# test: can use modal
- launchApp
- tapOn: Modal
- tapOn: Select date
- runFlow: ../utils/swipe-wheel-1-modal.yml
- runFlow: utils/swipe-wheel-1-modal.yml
- tapOn: Confirm
- assertVisible:
text: '2000-01-02'
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
appId: com.rn069
tags:
- android
---
- runFlow:
file: utils/set-timezone.yml
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"install:debug": "adb install examples/Rn069/android/app/build/outputs/apk/debug/app-debug.apk",
"build:release": "(cd examples/Rn069/android && ./gradlew assembleRelease) && yarn install:release",
"build:debug": "(cd examples/Rn069/android && ./gradlew assembleDebug) && yarn install:debug",
"emulator": "bash ./scripts/start-android-emulator.sh",
"maestro:ios": "maestro test .maestro/ios.yml",
"maestro:android": "maestro test .maestro/display-text"
"emulator": "bash ./scripts/start-android-emulator.sh --android",
"maestro:ios": "maestro test --include-tags=ios .maestro/",
"maestro:android": "maestro test --include-tags=android .maestro/"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d73d92a

Please sign in to comment.