Skip to content

Add sample data dropdown to landing screen for use in integration tests #5024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 10, 2023

Conversation

kenzieschmoll
Copy link
Member

@kenzieschmoll kenzieschmoll commented Jan 10, 2023

This is flagged to ensure this sample data picker never shows up in release mode. This allows for loading sample data into DevTools without the data existing in a local file system.

RELEASE_NOTE_EXCEPTION=testing change

@kenzieschmoll kenzieschmoll requested a review from a team as a code owner January 10, 2023 20:00
@kenzieschmoll kenzieschmoll requested review from bkonyi and CoderDake and removed request for a team January 10, 2023 20:00
expect(find.byType(AppSizeToolingInstructions), findsOneWidget);
});

testWidgetsWithWindowSize(
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add a test to make sure this doesn't show in release mode?

Copy link
Member Author

Choose a reason for hiding this comment

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

There isn't an easy way that I'm aware of to mock the value of kReleaseMode. The only way to test this would be to add another job to our github actions that runs the test suite in release mode, which may be a bit overkill for a test this small.

@kenzieschmoll kenzieschmoll merged commit fb97c6c into flutter:master Jan 10, 2023
@kenzieschmoll kenzieschmoll deleted the pit branch January 10, 2023 20:32
@CoderDake CoderDake mentioned this pull request Jan 24, 2023
7 tasks
@DartDevtoolWorkflowBot DartDevtoolWorkflowBot mentioned this pull request Jan 24, 2023
7 tasks
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.

2 participants