widget_test_kit 0.0.2 copy "widget_test_kit: ^0.0.2" to clipboard
widget_test_kit: ^0.0.2 copied to clipboard

Declarative, readable widget-testing helpers for Flutter.

0.0.2 #

  • Initial release.
  • TestApp – minimal MaterialApp + Scaffold wrapper for widget tests.
  • Expectation extensionsexpectThat, expectThatSingle, shouldBe, expectThatEventually.
  • Form extensionscompleteForm, updateField, updateForm, submitForm, clearForm, updateFieldWithRetry.
  • Finder extensionsfind.button() for any ButtonStyleButton / IconButton.
  • FieldFinders utility – byKey, byLabel, byHint, bySemantics.
  • Matchers
    • Visibility: toBeVisible, toBeHidden, toNotExist.
    • State: toBeEnabled, toBeDisabled, toBeChecked, toBeUnchecked, toHaveValue.
    • Content: toHaveText, toContainText, toHaveSemantics.
    • Layout: toHaveSize, toBePositioned, toBeWithin.
1
likes
150
points
64
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Declarative, readable widget-testing helpers for Flutter.

Repository (GitHub)
View/report issues

Topics

#testing #widget-testing #unit-testing #flutter

License

MIT (license)

Dependencies

flutter, flutter_test

More

Packages that depend on widget_test_kit