test(deck-options): discard changes dialog #17851
Open
+225
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose / Description
@Arthur-Milchior said this would be hard. I knew he was right, and I did it anyway. I would regret my time spent here, but it will hopefully lead to more regression coverage for our backend pages
Issue
Approach
DeckOptions.isClosingFragment
)How Has This Been Tested?
Warning
This needs a number of reruns in CI to be sure it's stable
Learning (optional, can help others)
This is the first test of
anki.pages
, and hopefully will allow us to stop a few 'brown paper bag' bugs in future, such as when we broke StatisticsonView
can't be called insideonActivity
. There feels like a lot of bad advice here, and the easy option is to move the assertion outsideonActivity
: https://stackoverflow.com/questions/61953249/how-to-access-activity-from-activityscenarioruleChecklist