IntegrationTestPreview class abstract

Integration Test Preview has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage (using Android and iOS platform UIs). This package is based upon the IntegrationTestHelper and sublasses BaseIntegrationTest as well as DevicePreview packages, and does much more with the combination of the two of them.

It also allows for specific device size preview screenshots for the app stores, generated locally in your project path; In addition to easily comparable responsive screenshots.

When running a test using a IntegrationTestPreview subclass, you can assign the devices that you want to test against (and take screenshots for) using the initializeDevices method.

Inheritance
  • Object
  • BaseIntegrationTest
  • IntegrationTestPreview

Properties

binding IntegrationTestPreviewBinding
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tester WidgetTester
getter/setter pairinherited

Methods

changeSliderForKey(String fieldKey, {required double percentage}) Future<void>
inherited
changeSliderForTooltip(String toolTip, {required double percentage}) Future<void>
inherited
changeSliderForType({required double percentage}) Future<void>
inherited
dismissBottomSheet() Future<void>
inherited
dismissModal() Future<void>
inherited
enterText(String fieldKey, String inputText) Future<void>
inherited
getBuildContext() Future<BuildContext>
Getting a Build Context involves returning the element for the MaterialApp, CupertinoApp or a child of either.
initializeDevices(Set<DeviceInfo> testDevices, {bool showToolbar = false, bool hideFrame = false, ScreenshotState state = ScreenshotState.NONE}) Future<void>
initializeTests(WidgetTester tester, Widget main, {int waitForMilliseconds = 450}) Future<void>
override
isPlatformAndroid() Future<bool>
override
loadFixtureJSON(String fixturePath) Future
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollPicker(Finder widgetFinder, String pickerElement) Future<void>
inherited
scrollToListItemText(String listKey, String itemText) Future<void>
inherited
selectPlatformDate(DateTime startingDate, DateTime endingDate) Future<void>
The selectPlatformDate method allows for testing of an Android DatePickerDialog, and an iOS CupertinoDatePicker and accepts two DateTime objects. The default date that is set on the date picker is the first parameter @startingDate, and the destination date is the @endingDate. selectPlatformDate handles the waiting for the UI to load, finding the Picker Widget, and then tapping or scrolling the correct date Widget components. In addition, it also includes List item prefixes, and positions within the list. Using the selectPlatformDate implementation, it removes at the least 3 lines of code from your integration tests, and allows that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
setupInitialData() Future<void>
inherited
setWaitMilliseconds(int waitForMilliseconds) → void
inherited
takeScreenshot(String filePath) Future<void>
override
tapBackArrow() Future<void>
inherited
tapCloseButton() Future<void>
inherited
tapDeleteKey() Future<void>
inherited
tapDoneButton() Future<void>
inherited
tapEnterKey() Future<void>
inherited
tapForIcon(IconData widgetIcon) Future<void>
The tapForIcon handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes a post tap wait for any screen loading needed. Using the tapForIcon implementation, we remove at the least 3 lines of code from your integration tests, and allow that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
tapForIconTooltip(String widgetTooltip) Future<void>
The tapForIconTooltip handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes a post tap wait for any screen loading needed. Using the tapForIconTooltip implementation, we remove at the least 3 lines of code from your integration tests, and allow that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
tapForKey(String fieldKey) Future<void>
The tapForKey handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes a post tap wait for any screen loading needed. Using the tapForKey implementation, we remove at the least 3 lines of code from your integration tests, and allow that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
tapForTooltip(String toolTip) Future<void>
The tapForTooltip handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes a post tap wait for any screen loading needed. Using the tapForTooltip implementation, we remove at the least 3 lines of code from your integration tests, and allow that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
tapForType(Type fieldType) Future<void>
The tapForType handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes a post tap wait for any screen loading needed. Using the tapForType implementation, we remove at the least 3 lines of code from your integration tests, and allow that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
tapListItem({required String widgetPrefix, required int itemIndex}) Future<void>
The tapListItem method handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes List item prefixes, and positions within the list. Using the tapListItem implementation, it removes at the least 3 lines of code from your integration tests, and allows that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
tapListWidget(int itemIndex, {required String widgetPrefix, required String widgetType}) Future<void>
inherited
tapSearchKey() Future<void>
inherited
tapShiftKey() Future<void>
inherited
tapSpaceKey() Future<void>
inherited
tapWidget(String widgetText) Future<void>
The tapWidget handles the waiting for the UI to load, finding the Widget, and then tapping the found Widget. In addition, it also includes a post tap wait for any screen loading needed. Using the tapWidget implementation, we remove at the least 3 lines of code from your integration tests, and allow that functionality to be reused in your own custom implementation of the BaseIntegrationTest class.
inherited
testDeviceEndToEnd(DeviceInfo device) Future<void>
toggleDeviceUI(DeviceInfo device) Future<void>
toString() String
A string representation of this object.
inherited
verifyExactText(String itemText, {bool shouldThrowError = true}) Future<bool>
inherited
verifyListExactText(int itemIndex, {required String widgetPrefix, required String widgetSuffix, required String expectedText}) Future<void>
inherited
verifyTextFieldForKey(String fieldKey, String itemText) Future<void>
inherited
verifyTextForKey(String fieldKey, String itemText, {bool shouldThrowError = true}) Future<bool>
inherited
waitForUI({int durationMultiple = 1}) Future<void>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited