ScottyLabs / tartanhacks_dashboard_v2

3 stars 7 forks source link

Example login integration test #49

Closed rlyss closed 2 years ago

rlyss commented 2 years ago

Example integration test

Added a simple integration test that opens the app to the login screen, enters in sample username and password info, then verifies that the data was entered in correctly.

Setup

Before running the test case, change the run configuration for tests.

  1. Select "Edit configuration"
image
  1. Add new Flutter Test configuration
image
  1. Point the "Test File" field to the file path of the test (i.e. login_test.dart)
image
  1. Press apply. Start up the emulator and run the test with the green arrow on the top bar.