Class ProfileFragmentTest

java.lang.Object
com.example.breeze_seas.ProfileFragmentTest

public class ProfileFragmentTest extends Object
Instrumentation tests for the profile screen's basic visibility and editing affordances.
  • Field Details

    • activityRule

      public androidx.test.ext.junit.rules.ActivityScenarioRule<MainActivity> activityRule
      Rule that launches the MainActivity before every test case. This ensures the fragment container is available for navigation.
  • Constructor Details

    • ProfileFragmentTest

      public ProfileFragmentTest()
  • Method Details

    • setUp

      public void setUp()
      Initializes the testing environment. *

      Ensures that FirebaseApp is initialized within the application context if it hasn't been already, preventing "Firebase not initialized" exceptions during real database operations.

    • testProfileComponentsVisibility

      public void testProfileComponentsVisibility() throws InterruptedException
      Verifies that all essential profile UI components are visible to the user after data is successfully loaded from Firebase.
      Throws:
      InterruptedException
    • testEditFieldToggle

      public void testEditFieldToggle() throws InterruptedException
      Validates the toggling logic of profile input fields.
      Throws:
      InterruptedException