Skip to content

Conversation

Chinex-Boroja
Copy link

@Chinex-Boroja Chinex-Boroja commented Jun 7, 2024

PR Summary for issue #484

This PR adds a series of Espresso tests to verify the functionality of menu options and toolbar visibility in MainActivity.

Changes Made

  • Added Test Case: testMenuImport_whenClickedShouldLaunchImportActivity

    • Description: Clicks on the Import menu item and verifies that the ImportCSVActivity is launched.
  • Added Test Case: testMenuImport_whenClickedShouldLaunchExportActivity

    • Description: Clicks on the Export menu item and verifies that the ExportCSVActivity is launched.
  • Added Test Case: testToolBarVisibility

    • Description: Verifies that the toolbar in MainActivity is displayed.
  • Added Test Case: testMenuItems

    • Description: Verifies that specific menu items are displayed when the overflow menu is opened.
  • Added Test Case: testOpenTableManager

    • Description: Clicks on the Sync menu item and verifies that the appropriate intent is launched..
  • Added Test Case: testStartSync

    • Description:Clicks on the Sync menu item and verifies that the Sync dialog is displayed.
  • Added Test Case: testOnOptionsItemSelected

    • Description: Mocks a menu item selection and verifies that the appropriate action is taken.

Rationale

These tests ensure that the menu options and toolbar in MainActivity function correctly. Verifying that the correct activities are launched and the appropriate UI elements are displayed.

@Chinex-Boroja
Copy link
Author

@wbrunette kindly review the PR

@wbrunette
Copy link
Member

You can add additional tests if you like. Since @nuilewis is still working on Tables build, I would like to wait to merge until it's ready.

@nuilewis
Copy link
Collaborator

@Lamouresparus
Mentioning Love so she gets updates from GitHub.

@Chinex-Boroja Chinex-Boroja changed the title Add Espresso Tests for Menu Import and Export Functionality for Table's Revised Top Bar Add Espresso Tests for MainActivity Menu and Toolbar Functionality Jul 11, 2024
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.

3 participants