...

/

Solution: Quality Assurance

Solution: Quality Assurance

Explore solutions to the widget testing challenge.

Challenge solutions

Great job on completing all the steps in the previous challenge! Feel free to compare your code solutions with the solutions below:

Solution 1: Test if the tasks are visible

  1. Pump the TasksList widget in readiness for testing.

        // Build the widget to test
        await tester.pumpWidget(
            MaterialApp(home:
...