Project to showcase the Automate UI testing and integration testing
- A screen with two tabs. Clicking on tabs will change the content of the screen.
- A text is shown under the first tab
- A button is shown under the second tab. Clicking on the button will show a Snackbar with message 'Button is clicked'
- Two bottom tabs of the screen.
- Verify the presence of the text under the first tab.
- Verify the presence of the button under the second tab. Make the button click under the second tab.
- Verify the presence of a snackbar after clicking on the button in the second tab.
To test on a real iOS/Android device or on an Android Emulator/iOS Simulator, first connect the device or open the Android Emulator/iOS Simulator and run the following command from the root of the project:
flutter drive --target=e2e_testing/e2e.dart --driver=e2e_testing/test_tab_host.dart
Run the following command from the root of the project:
flutter test integration_test/app_test.dart