spot 0.6.0 copy "spot: ^0.6.0" to clipboard
spot: ^0.6.0 copied to clipboard

Chainable finders and better assertions for powerful widget tests.

Changelog #

0.6.0 #

  • Add matchers .existsAtMostOnce() and .existsAtMostNTimes(x) #19
  • Add selector .withParent(parent)/.withParents([...]) #21
  • Add selector .withChild(child)/.withChildren([...]) #21
  • Child selectors now only match children #22
  • You can call act.tap() now with any WidgetSelector that returns a single widget #23

0.5.0 #

  • Breaking act.tap is now async, use await act.tap() #17
  • New: spotText('foo') finds any text on screen using "contains". The new AnyText widget combines Text, SelectableText, RichText and EditableText #18
  • New: spotTextWhere((text) => ) allows to match text with custom logic #18
  • Deprecated: spotSingleText and spotTexts are deprecated in favor of spotText and the basic spot<Text>(), spot<SelectableText>(), ... #18
  • Fix: hasProp matcher can now check for null values with (it) => it.isNull() #18
  • Improvement: withDiagnosticProp now falls back to the default value of a DiagnosticNode #18

0.4.1 #

  • Added screenshot methods #14
    /// Takes a screenshot of the entire window
    await takeScreenshot();
      
    /// Takes a screenshot of a single Screen/Widget
    final homePage = spotSingle<HomePage>();
    await takeScreenshot(selector: homePage);
      
    /// Use it as extension
    await spotSingle<HomePage>().takeScreenshot();
    
  • Export all types from checks.dart which are required to use hasProp
  • Update for Flutter 3.13

0.4.0 #

  • Added act.tap(button) to tap widgets #9
  • Raise min Flutter version to 3.10.0
  • Switch to the official checks package #12
  • Rename SingleWidgetSnapshot.discoveredElements -> SingleWidgetSnapshot.discoveredElement #11

0.3.2 #

  • Export all types from checks.dart which are required to use hasProp

0.3.1 #

  • Fix compilation error with Flutter 3.0.0

0.3.0 #

  • spotTexts now matches EditableText and SelectableText #5
  • spotTexts now has generic type <W> instead of static Text. This changes the return type from MultiWidgetSelector<Text> -> MultiWidgetSelector<W> #5
  • Changed signature of SingleWidgetSelector.withProp and MultiWidgetSelector.withProp.
  • New matchers for EditableText, ListTile, SelectableText

0.2.2 #

  • Support for Flutter 3.0.0 / Dart 2.17

0.2.1 #

  • Fix WidgetSelector with parents that have parents #4
  • Require all children selector to match, not just one #4

0.2.0 #

  • Reworked spot API #3
  • Allow defining WidgetSelector with children
  • Allow defining WidgetSelector with parents
  • Interop with Finder API
  • Match properties of widgets (via DiagnosticsNode)
  • Allow matching of nested properties (with checks API)
  • Generate code for custom properties for Flutter widgets
  • Allow generating code for properties of 3rd party widgets

0.1.0-preview.2 #

  • Update package description
  • Add issue_tracker link
  • Add example folder

0.1.0-preview.1 #

63
likes
0
pub points
70%
popularity

Publisher

verified publisherpascalwelsch.com

Chainable finders and better assertions for powerful widget tests.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

checks, collection, dartx, flutter, flutter_test, integration_test, nanoid2, stack_trace, test, test_api

More

Packages that depend on spot