Skip to content

Added UI test case for main activity#1352

Merged
cortinico merged 2 commits into
ChuckerTeam:mainfrom
codedbyaman:feature/set_ui_test
Apr 23, 2025
Merged

Added UI test case for main activity#1352
cortinico merged 2 commits into
ChuckerTeam:mainfrom
codedbyaman:feature/set_ui_test

Conversation

@codedbyaman

Copy link
Copy Markdown
Contributor

📷 Video

Screen.Recording.2025-04-11.at.11.36.35.PM.mov

📄 Context

Added UI test coverage for the Chucker Sample App's MainActivity using Espresso. This helps verify the visibility and basic interaction of key UI components such as radio buttons and buttons that trigger HTTP/GraphQL activities.

📝 Changes

  • Created MainActivityTest.kt under sample/src/androidTest/
  • Added tests to validate:
    • Visibility of interceptor type selector
    • Functionality of Application and Network radio buttons
    • Presence and interaction with action buttons: HTTP, GraphQL, Launch Chucker, Export to Log/HAR
  • Covered the screen shown in the launcher activity

🚫 Breaking

No breaking changes introduced.

🛠️ How to test

  • Run the UI test with the following command:
    ./gradlew :sample:connectedAndroidTest
  • Confirm that MainActivityTest passes successfully on a connected device or emulator.

@codedbyaman codedbyaman requested a review from a team as a code owner April 11, 2025 18:09
Comment thread build.gradle Outdated
Comment on lines +46 to +47
androidXExpresso = '3.6.0-alpha01'
androidXExtJUnit = '1.2.0-alpha01'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not depend on alpha versions please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced with stable versions. @cortinico

@cortinico cortinico enabled auto-merge (squash) April 23, 2025 08:01
@cortinico cortinico merged commit 03bf8dc into ChuckerTeam:main Apr 23, 2025
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.

2 participants