Skip to content

Add a logging screen test#1348

Merged
DaveShuckerow merged 7 commits into
flutter:masterfrom
DaveShuckerow:logging-tests
Nov 19, 2019
Merged

Add a logging screen test#1348
DaveShuckerow merged 7 commits into
flutter:masterfrom
DaveShuckerow:logging-tests

Conversation

@DaveShuckerow

Copy link
Copy Markdown
Contributor

Also, give more control to Table clients over how they create keys. We don't need the PageStorageKey in most cases.

@jacob314 jacob314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines +60 to +62
testWidgets('can toggle structured errors', (WidgetTester tester) async {
await tester.pumpWidget(wrap(Builder(builder: screen.build)));
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add logic to toggle structured errors on/off

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch; done.

expect(find.byKey(ValueKey(fakeLogData.first)), findsNothing,
reason:
'the least recently added logdata should be at the top of the '
'list, hidden from view.');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: trailing comma - here and in expect statement above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@DaveShuckerow DaveShuckerow merged commit 166a7fd into flutter:master Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants