Skip to content
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

Add tests for the app exit confirmation behavior #28

Merged
merged 6 commits into from
May 13, 2022

Conversation

Abestanis
Copy link
Collaborator

This adds test for the app exit confirmation behavior and the setting introduced in dart-lang/test#2343. Tests for the new settings screen are not included.

I'm not super familiar with Flutter testing, if you have an ideas on how to improve these, I would be happy to hear them.
I'm also not supper happy about hard-coding the flutter toast package method channel name and the method names, but I don't see any other way.

I also manually tested that switching from DateTime to the to the clock package doesn't change how the back button confirm timeout works.

@nt4f04uNd nt4f04uNd force-pushed the 1.0.8 branch 3 times, most recently from b91a21f to ca3eadc Compare May 7, 2022 23:17
Copy link
Owner

@nt4f04uNd nt4f04uNd left a comment

Choose a reason for hiding this comment

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

I also manually tested that switching from DateTime to the to the clock package doesn't change how the back button confirm timeout works.

It's how it should be done, correct

test/observer/app.dart Outdated Show resolved Hide resolved
test/observer/app.dart Outdated Show resolved Hide resolved
test/observer/toast.dart Outdated Show resolved Hide resolved
test/routes/home_route_test.dart Outdated Show resolved Hide resolved
test/routes/home_route_test.dart Outdated Show resolved Hide resolved
@Abestanis Abestanis force-pushed the test/appExitConfirmation branch 2 times, most recently from 368b798 to 1670f19 Compare May 11, 2022 21:29
test/observer/toast.dart Outdated Show resolved Hide resolved
test/observer/toast.dart Outdated Show resolved Hide resolved
test/observer/toast.dart Outdated Show resolved Hide resolved
test/routes/home_route_test.dart Outdated Show resolved Hide resolved
test/observer/system.dart Outdated Show resolved Hide resolved
test/observer/toast.dart Outdated Show resolved Hide resolved
@nt4f04uNd
Copy link
Owner

This is much better now, thank you!

@nt4f04uNd nt4f04uNd merged commit 9b731d1 into nt4f04uNd:1.0.8 May 13, 2022
@Abestanis Abestanis deleted the test/appExitConfirmation branch May 13, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants