Skip to content
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

Maestro tests for both: iOS and Android 2 folders with all test cases… #703

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ PODS:
- React-perflogger (= 0.70.5)
- RNCMaskedView (0.1.11):
- React
- RNGestureHandler (1.10.3):
- RNGestureHandler (2.9.0):
- React-Core
- RNReanimated (2.12.0):
- DoubleConversion
Expand Down Expand Up @@ -633,7 +633,7 @@ SPEC CHECKSUMS:
React-runtimeexecutor: 7401c4a40f8728fd89df4a56104541b760876117
ReactCommon: c9246996e73bf75a2c6c3ff15f1e16707cdc2da9
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39
RNReanimated: 2a91e85fcd343f8af3c58d3425b99fdd285590a5
RNScreens: 218801c16a2782546d30bd2026bb625c0302d70f
RNSVG: ecd661f380a07ba690c9c5929c475a44f432d674
Expand Down
6 changes: 3 additions & 3 deletions fabricexample/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ PODS:
- React-jsi (= 0.70.5)
- React-logger (= 0.70.5)
- React-perflogger (= 0.70.5)
- RNGestureHandler (2.9.0):
- RNGestureHandler (2.7.1):
- RCT-Folly
- RCTRequired
- RCTTypeSafety
Expand Down Expand Up @@ -1029,7 +1029,7 @@ SPEC CHECKSUMS:
React-rncore: e2856a5f65ec840ffe2dfdc14ac84e1ee1a18c25
React-runtimeexecutor: 7401c4a40f8728fd89df4a56104541b760876117
ReactCommon: c9246996e73bf75a2c6c3ff15f1e16707cdc2da9
RNGestureHandler: 9d2ebd17a9fef618d9720e3d95ff5e6607acf8d4
RNGestureHandler: 8e5218fe0fde045c6f318202fc51ce3638deee54
RNReanimated: bba951bc75426d2f34d26ce5ec8ca6b8eba5f252
RNScreens: 208223c783496e6d0aa92ffdf307f61d58756fc1
RNSVG: 8ef4c60d9378eab6996a3f006dfb5784e6dab302
Expand All @@ -1039,4 +1039,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 543e2b50cb719b002eca725e63b881ca716979e9

COCOAPODS: 1.12.0
COCOAPODS: 1.11.3
4,786 changes: 0 additions & 4,786 deletions fabricexample/yarn.lock

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appId: ${APP_ID}
# tc115 The AutoWidthTabBarExample tab is accessible
---
- launchApp
- assertVisible: 'PagerView Example'
- swipe:
start: '84%,74%'
end: '94%,35%'
duration: 354
- tapOn: 'AutoWidthTabBarExample'
#- assertVisible: 'PagerView Example'
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
appId: ${APP_ID}
# tc116 The AutoWidthTabBarExample tab displays its content correctly
---
- runFlow: tc115_AutoWidthTabBarExample.yaml
- assertVisible: 'AutoWidthTabBarExample'
- assertVisible: 'Contacts'
- assertVisible: 'Denzel Curry'
- assertVisible: 'Article'
- assertVisible: 'Albums'
- assertVisible: 'Chat'
- assertVisible: 'long long long title'
- repeat:
times: 4
commands:
- swipe:
start: '71%,19%'
end: '15%,18%'
duration: 594
- assertVisible: 'medium title'
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
appId: ${APP_ID}
# tc117 All the links placed in the navigation bar are active
---
- runFlow: tc115_AutoWidthTabBarExample.yaml
- tapOn: 'Article'
- tapOn: 'Contacts'
- tapOn: 'Albums'
- tapOn: 'Chat'
- tapOn: 'long long long title'
- tapOn: 'medium title'
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
appId: ${APP_ID}
# tc118 Swiping pages is obtainable
---
- runFlow: tc115_AutoWidthTabBarExample.yaml
- swipe:
start: '36%,53%'
end: '88%,54%'
duration: 192
- assertVisible: 'Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.'
- swipe:
start: '74%,68%'
end: '2%,66%'
duration: 226
- assertVisible: 'Miles Ferguson'
- swipe:
start: '90%,56%'
end: '21%,54%'
duration: 240
- swipe:
start: '89%,62%'
end: '0%,55%'
duration: 240
- assertVisible: 'Write a message'
- swipe:
start: '91%,49%'
end: '6%,45%'
duration: 256
- assertVisible: 'Knowledge Bot'
- swipe:
start: '90%,39%'
end: '14%,33%'
duration: 240
- tapOn: 'medium title'
- repeat:
times: 2
commands:
- swipe:
start: '14%,38%'
end: '77%,39%'
duration: 482
- assertVisible: 'Write a message'
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appId: ${APP_ID}
# tc119 Users can type in their message at the CHAT page, but sending functionality is not implemented
---
- runFlow: tc115_AutoWidthTabBarExample.yaml
- repeat:
times: 2
commands:
- swipe:
start: '92%,62%'
end: '34%,61%'
duration: 320
- assertVisible: 'Write a message'
- tapOn: 'Write a message'
- inputText: 'Cotton candy macaroon carrot cake sesame snaps cake caramels pudding powder'
- assertVisible: 'Cotton candy macaroon carrot cake sesame snaps cake caramels pudding powder'
24 changes: 24 additions & 0 deletions maestro_tests/basic_example/tc14_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
appId: ${APP_ID}
# tc14 The [Prev] button is clickable until page one is reached (Page =1/X)
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- tapOn: 'Last'
- assertVisible:
id: "pageNumber9"
- assertVisible: 'Page 10 / 10 '
- assertVisible: 'Prev'
- tapOn: 'Prev'
- repeat:
times: 8
commands:
- tapOn: 'Prev'
- assertVisible:
id: "pageNumber0"
- assertVisible: 'Page 1 / 10 '
- tapOn: 'Prev'
- assertVisible:
id: "pageNumber0"
- assertVisible: 'Page 1 / 10 '
48 changes: 48 additions & 0 deletions maestro_tests/basic_example/tc16_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
appId: ${APP_ID}
# tc16 The active [Like] button is on each page
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- assertVisible: 'Page 1 / 10 '
- assertVisible: '7 likes'
- tapOn:
id: "like-count-text"
- assertVisible: '8 likes'
- tapOn: 'Next'
- assertVisible: 'Page 2 / 10 '
- assertVisible:
id: "like-count-text"
- assertVisible: '7 likes'
- assertVisible:
id: "like-count-touchable"
- repeat:
times: 9
commands:
- tapOn:
id: "like-count-touchable"
retryTapIfNoChange: false
- assertVisible: '16 likes'
- tapOn: 'Last'
- assertVisible: '7 likes'
- tapOn:
id: "like-count-touchable"
- repeat:
times: 25
commands:
- tapOn:
id: "like-count-touchable"
retryTapIfNoChange: false
- assertVisible: '33 likes'
- tapOn: 'Prev'
- assertVisible: '7 likes'
- tapOn:
id: "like-count-text"
- repeat:
times: 79
commands:
- tapOn:
id: "like-count-touchable"
retryTapIfNoChange: false
- assertVisible: '87 likes'
18 changes: 18 additions & 0 deletions maestro_tests/basic_example/tc17_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
appId: ${APP_ID}
# tc17 The amount of likes added doesn’t change while swiping pages
---
- runFlow: tc16_pager_basic_example.yaml
- tapOn: 'Next'
- assertVisible: '33 likes'
- tapOn: 'Prev'
- assertVisible: '87 likes'
- tapOn: 'Start'
- assertVisible: '8 likes'
- tapOn: 'Next'
- assertVisible: '16 likes'
- tapOn: 'Prev'
- assertVisible: '8 likes'
- tapOn: 'Last'
- assertVisible: '33 likes'
- tapOn: 'Prev'
- assertVisible: '87 likes'
16 changes: 16 additions & 0 deletions maestro_tests/basic_example/tc22_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
appId: ${APP_ID}
# tc22 [Control] button hides all the buttons from the bottom of the screen
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- tapOn:
text: 'Control'
index: 0
- assertVisible:
text: 'Logs'
index: 0
- tapOn: 'Control'
- assertVisible: 'Start'
- assertVisible: 'Next'
16 changes: 16 additions & 0 deletions maestro_tests/basic_example/tc23_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
appId: ${APP_ID}
# tc23 [Logs] button after being tapped shows the logs
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- tapOn: 'Logs'
# this log is not present initially on android
#- assertVisible: "Position: 0 Offset: 0"
- assertVisible: 'Page: 0'
#- tapOn: "Logs"
#- assertNotVisible: "Position: 0 Offset: 0"
- tapOn: 'Control'
- assertVisible: 'Last'
- assertVisible: 'Next'
23 changes: 23 additions & 0 deletions maestro_tests/basic_example/tc3_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
appId: ${APP_ID}
# tc3 Basic Example screen with its elements is displayed correctly
---
- launchApp:
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- assertVisible: '👍 Like'
- assertVisible: '7 likes'
- assertVisible: 'page number 0'
- assertVisible: 'Control'
- assertVisible: 'Logs'
- assertVisible: 'Scroll Enabled'
- assertVisible: 'Add new page'
- assertVisible: 'Turn off animations'
- assertVisible: 'Overdrag Disabled'
- assertVisible: 'Remove last page'
- assertVisible: 'ScrollState[ idle ]'
- assertVisible: 'Start'
- assertVisible: 'Prev'
- assertVisible: 'Next'
- assertVisible: 'Last'
- assertVisible: 'Page 1 / 10 '
28 changes: 28 additions & 0 deletions maestro_tests/basic_example/tc4_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
appId: ${APP_ID}
# tc4 Basic Example screen elements are clickable and they change their labels after tapping on each
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: '👍 Like'
- tapOn:
id: "like-count-touchable"
- assertVisible: '8 likes'
- tapOn: 'Scroll Enabled'
- assertVisible: 'Scroll Disabled'
- tapOn: 'Add new page'
- assertVisible: 'Page 1 / 11 '
- tapOn: 'Turn off animations'
- assertVisible: 'Turn animations back on'
- tapOn: 'Overdrag Disabled'
- assertVisible: 'Overdrag Enabled'
- tapOn: 'Remove last page'
- assertVisible: 'Page 1 / 10 '
- tapOn: 'Next'
- assertVisible: 'Page 2 / 10 '
- tapOn: 'Last'
- assertVisible: 'Page 10 / 10 '
- tapOn: 'Prev'
- assertVisible: 'Page 9 / 10 '
- tapOn: 'Start'
- assertVisible: 'Page 1 / 10 '
19 changes: 19 additions & 0 deletions maestro_tests/basic_example/tc5_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
appId: ${APP_ID}
# tc5 The [Scroll Enabled] button can switch states between enabled to disabled and back any number of times
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- tapOn: 'Scroll Enabled'
- assertVisible: 'Scroll Disabled'
- tapOn: 'Scroll Disabled'
- assertVisible: 'Scroll Enabled'
- tapOn: 'Scroll Enabled'
- assertVisible: 'Scroll Disabled'
- tapOn: 'Scroll Disabled'
- assertVisible: 'Scroll Enabled'
- tapOn: 'Scroll Enabled'
- assertVisible: 'Scroll Disabled'
- tapOn: 'Scroll Disabled'
- assertVisible: 'Scroll Enabled'
18 changes: 18 additions & 0 deletions maestro_tests/basic_example/tc6_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
appId: com.pagerviewexample
# tc6 The [Add new page] button enables user to add any number of pages one by one
---
- launchApp
- assertVisible: 'PagerView Example'
- tapOn: 'Basic Example'
- assertVisible: 'Basic Example'
- tapOn: 'Add new page'
- assertVisible: 'Page 1 / 11 '
- repeat:
times: 25
commands:
- tapOn:
text: 'Add new page'
retryTapIfNoChange: false
- assertVisible: 'Page 1 / 36 '
- tapOn: 'Last'
- assertVisible: 'Page 36 / 36 '
27 changes: 27 additions & 0 deletions maestro_tests/basic_example/tc7_pager_basic_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
appId: ${APP_ID}
# tc7 The [Remove last page] button enables user to remove pages one by one
---
- launchApp
- extendedWaitUntil:
visible: "PagerView Example"
timeout: 60000
- tapOn: 'Basic Example'
- assertVisible: 'Page 1 / 10 '
- tapOn: 'Page 1 / 10 '
- tapOn: 'Add new page'
- assertVisible: 'Page 1 / 11 '
- repeat:
times: 25
commands:
- tapOn:
text: 'Add new page'
retryTapIfNoChange: false
- assertVisible: 'Page 1 / 36 '
- tapOn: 'Remove last page'
- repeat:
times: 36
commands:
- tapOn:
text: "Remove last page"
retryTapIfNoChange: false
- assertVisible: 'Page 1 / 0 '
Loading