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

Develop #1035

Merged
merged 4 commits into from Jun 12, 2022
Merged

Develop #1035

merged 4 commits into from Jun 12, 2022

Conversation

jevo160296
Copy link
Contributor

Pull Request (PR) Checklist

Please check if your pull request fulfills the following requirements:

  • The PR is submitted to the develop branch.
  • I understand the Ivy Developer Guidelines.
  • I've read the Contribution Guidelines.
  • The code builds and is tested on an actual Android device.
  • I confirm that I've run the code locally and everything works as expected.
  • I confirm that I've run Ivy Wallet's UI tests (androidTest) and all tests are passing
    successfully.

Important: Don't worry if you experience flaky UI tests. Just re-run the failed ones again and if they pass => it's all good!

Put an x in the boxes that apply.

  • Demo: Checking checkbox using [x]

Pull Request Type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, new lines, etc.)
  • Refactoring (no functional changes, renaming)
  • Small improvement (fix typo, UI fine-tune, change color or something small)
  • Gradle Build related changes
  • Dependencies update (updating libraries)
  • Documentation (clarifying comments, KDoc)
  • Tests (Unit, Integration, UI tests)
  • Other (please describe):

Put an x in the boxes that apply.

What's changed?

Describe with a few bullets what's new:

  • Button skip and skip all on the account detail fixed.
  • Added unit tests for pay and skip planned payments on the homescreen and the account detail screen

How to run Ivy Wallet's UI tests (androidTest)

Connect Android Emulator

  • Pixel 5 API 29+ AVD emulator (recommended)
  • Pixel 3XL API 29+ AVD emulator (recommended)
  • Large screen physical device (might also work)

Method 1: Android Studio UI

  • Find com (androidTest) package
  • Right click
  • Run 'Tests in 'com''

Note: If you've checked "Compact Middle Packages" the option will appear as com.ivy.wallet (androidTest).

Method 2: Gradle Wrapper

  • chmod +x gradlew (Linux)
  • ./gradlew connectedDebugAndroidTest

Method 3: Fastlane

  • Install Ruby 2.7
  • bundle install
  • bundle exec fastlane ui_tests

@ILIYANGERMANOV
Copy link
Collaborator

That's awesome @jevo160296! I've made a major refactoring in our UI tests - can you fetch, accept my changes and re-write the tests that you've added. I bet that you'll like the new way for writing tests 👌 (which we'll improve even more)

Thank you for adding tests - let's make Ivy Wallet the most stable project!

@jevo160296
Copy link
Contributor Author

Hi @ILIYANGERMANOV please don't merge this pull request yet, I'm cheking if the tests are still working good

@ILIYANGERMANOV
Copy link
Collaborator

Sure thing! Please rewrite your tests by chaining the methods with "." dot.

Example:

quickOnboarding()
.clickAddFAB()
.addPlannedPayment()
...

You'll see only the appropriate methods and available UI as a suggestion after you write "." Does that make sense?

@jevo160296
Copy link
Contributor Author

Yes thanks, I finished it, I'm running all the tests. I'll upload the changes in a few minutes.

@jevo160296
Copy link
Contributor Author

@ILIYANGERMANOV done, all tests passed. It's easier to build test now!.

@ILIYANGERMANOV
Copy link
Collaborator

Looks good @jevo160296! Thank you 👍 I'll improve the way we write tests even further but that's a decent starting point - great PR!

@ILIYANGERMANOV ILIYANGERMANOV merged commit f7f6da8 into Ivy-Apps:develop Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants