Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Widget Behaviour Test

Widget Behaviour Test

Widget Behavior Tests, also known as Widget Interaction Tests, are a type of test in Flutter that focuses on simulating user interactions with widgets and verifying their expected behavior. These tests ensure that the UI components of your app respond correctly to user input, gestures, animations, and other interactive events. Widget Behavior Tests help validate the user experience and ensure that the app's UI behaves as intended.
We will discuss important aspects of Widget Behavior Tests in Flutter.

Kendi J

July 08, 2023
Tweet

More Decks by Kendi J

Other Decks in Technology

Transcript

  1. Widget behavior Test? This is a type of test in

    Flutter that focuses on stimulating user interactions with widgets and verifying their expected behavior
  2. Our Major Focus Simulates user interactions with widgets to replicate

    real world scenarios e.g tap, swap, drag, etc Interaction Simulation Gestures and Animation Simulates gestures like long press, drag and drop, pinch to zoom. Validates animations by verifying that they start , progress and complete correctly based on specific interactions. 01 02
  3. Our Major Focus Testing User flows Users navigating through various

    screens. Giving a smooth and consistent user behavior 03 Asserting Expected Behavior Assertions to verify that the widgets respond as intended. 04
  4. Our Major Focus Dynamically manipulate the widget tree which allows

    you to simulate changes in the UI hierarchy and test how the app responds to those changes. Widget Tree Manipulation Asynchronous Testing This is widgets that my involve asynchronous operations like network requests or animations. 05 06
  5. Our Major Focus Widget Finder Allows you locate a widget

    within the widget tree based on various criteria like key, test or property. 07
  6. CREDITS: This presentation template was created by Slidesgo, including icons

    by Flaticon, and infographics & images by Freepik @kendyjaky @kendiJ THANKS