-
Notifications
You must be signed in to change notification settings - Fork 1
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
First commit for Espresso test #462
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Syeda, thank you! I left a couple of comments, nothing big, mostly related to renaming and removing unused code.
Also, please take a look at the git commit template we use in the repository and use the agreed convention when committing:
ci(ui-automation): Add Espresso for GiniBankSDKExample
PM-89
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/HelpScreen.kt
Outdated
Show resolved
Hide resolved
...le-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/CaptureScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/HelpScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/HelpScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/MainScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/MainScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/MainScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/MainScreen.kt
Outdated
Show resolved
Hide resolved
...app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/OnboardingScreen.kt
Outdated
Show resolved
Hide resolved
...p/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/testcases/MainActivityTest.kt
Outdated
Show resolved
Hide resolved
@danicretu We've discussed the commit style for automation specifically and here is the reference for the structure of commit |
Thanks @danicretu for your input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes, Syeda!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @SyedaGini! I still see some improvement potential though 🙈
Thank you for using the POM pattern! For the tests I would advise to apply these tips:
- Explicitly state in the test method name what is tested. It's ok to have long test method names.
- A test should generally assert one thing only at the end of the test. There can and will be exceptions, but as a rule of thumb try to assert only one thing at the end of the test.
- Tests should be independent so that we can run one specific test without having to run x nr of other tests before it. Imagine we want to fix
test30_...
and then we would need to run the previous 29 tests each time we want to see if test 30 works or not...
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/HelpScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/HelpScreen.kt
Outdated
Show resolved
Hide resolved
...ample-app/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/screens/HelpScreen.kt
Outdated
Show resolved
Hide resolved
...p/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/testcases/MainActivityTest.kt
Outdated
Show resolved
Hide resolved
...p/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/testcases/MainActivityTest.kt
Outdated
Show resolved
Hide resolved
...p/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/testcases/MainActivityTest.kt
Outdated
Show resolved
Hide resolved
...p/src/androidTest/java/net/gini/android/bank/sdk/exampleapp/ui/testcases/MainActivityTest.kt
Outdated
Show resolved
Hide resolved
@a-szotyori the requested changes are incorporated, thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Syeda! As discussed on Slack please don't merge it yet.
8013abc
to
88dd996
Compare
…indow` The emulator won't start without `-no-window` on GitHub Action runners. This reverts commit 2aea8c9. PM-89
Quality Gate passedIssues Measures |
PM-26
Added automation for No Result Screen
Added automation for Digital Invoice Screen
Added automation for File Import Error Screen
…ice) Added automation for Edit Button on Digital Invoice Screen.
Added automation for Error Screens
Pp 860 automation test files
PM-122
ci: Add scrollTo option
Fix failing test cases
…ageIsCaptured PM-122
Fix failing test cases
Quality Gate passedIssues Measures |
UI automation Test cases using Espresso