-
Notifications
You must be signed in to change notification settings - Fork 566
Fix part of #5571: Support practice questions #5729
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
Draft
theMr17
wants to merge
53
commits into
develop
Choose a base branch
from
support-practice-questions
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+438
−193
Draft
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
c851395
Add new feature flags
theMr17 2cc5137
Replace enableExtraTopicTabsUi usage with enableTopicInfoTab & enable…
theMr17 dd106e7
Enable practice tab for alpha builds
theMr17 8394a3f
Remove unused parameter
theMr17 ec425d5
Remove EXTRA_TOPIC_TABS_UI feature flag
theMr17 19b6bb7
Fix index of featureFlagItemMap in test
theMr17 e1cf476
Fix lint tests
theMr17 4c35b71
Fix tests
theMr17 b58eb88
Fix tests
theMr17 d7ecb4d
Fix tests
theMr17 f610e90
Fix tests
theMr17 59fc043
Fix tests
theMr17 a8e10c6
Merge branch 'develop' into support-practice-questions
theMr17 c1d994e
Fix tests
theMr17 b2796b7
Fix tests
theMr17 af87445
Fix tests
theMr17 8b0154d
Merge branch 'develop' into support-practice-questions
theMr17 4088c53
Merge branch 'develop' into support-practice-questions
theMr17 bae1331
Merge branch 'develop' into support-practice-questions
theMr17 80bf4b2
Merge branch 'develop' into support-practice-questions
theMr17 176ee96
Address review comments
theMr17 45ee60f
Merge remote-tracking branch 'origin/support-practice-questions' into…
theMr17 b09e3f5
Fix tests
theMr17 370177a
Fix tests
theMr17 ba5a5fe
Fix tests
theMr17 ae940ac
Introduce TabConfig
theMr17 de66aa3
Fix static checks
theMr17 3edff87
Merge branch 'develop' into support-practice-questions
theMr17 52a131c
Introduce enable_practice_tab field
theMr17 94c04b3
Merge remote-tracking branch 'origin/support-practice-questions' into…
theMr17 e932376
Hide practice tab based on enablePracticeTab
theMr17 070e02e
Merge branch 'develop' into support-practice-questions
theMr17 fd4388e
Merge branch 'develop' into support-practice-questions
theMr17 6faf94a
Rename enable_practice_tab to has_practice_questions for non-app level
theMr17 a9b7f9b
Merge branch 'develop' into support-practice-questions
theMr17 10c1ed1
Merge branch 'develop' into support-practice-questions
theMr17 79b4de9
Refactor getTabCount function
theMr17 302f696
Merge remote-tracking branch 'origin/support-practice-questions' into…
theMr17 505167e
Update FeatureFlagNameToNumericIdConverter
theMr17 0e1006f
Merge branch 'develop' into support-practice-questions
theMr17 fe034ee
Merge branch 'develop' into support-practice-questions
theMr17 1c91582
Add global variables for info and practice tab flag to maintain consi…
theMr17 13b80ba
Merge remote-tracking branch 'origin/support-practice-questions' into…
theMr17 ca3765f
Merge branch 'develop' into support-practice-questions
theMr17 f72b337
Merge branch 'develop' into support-practice-questions
theMr17 77920b5
Merge branch 'develop' into support-practice-questions
theMr17 134292c
Merge branch 'develop' into support-practice-questions
theMr17 ee9e2b9
Address review comments
theMr17 d43197c
Enable practice tab on alpha builds
theMr17 cabedae
Merge branch 'develop' into support-practice-questions
theMr17 4206099
Fix a few tests
theMr17 b3b792a
Fix ktlint issue
theMr17 183908c
Fix tests
theMr17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this test work with only the
forceEnableTopicPracticeTab
? It looks like it is only testing the practice tab.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that should work, removedTestPlatformParameterModule.forceEnableTopicInfoTab(true)
Edit: We need to enable info tab as well since we are checking for the
topic_name_text_view
(present intopic_name_text_view.xml
) in thelaunchTopicActivity()
function.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You response is not clear with regards to my original question. Is the visibility of
topic_name_text_view
gated behind both flags? why?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are in the practice session, the status of the info tab should be irrelevant. Otherwise it indicates a problem with the implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
topic_name_text_view
is gated behindENABLE_TOPIC_INFO_TAB
only. Note thattopic_name_text_view
is a text element inside the info tab. The test launches theTopicActivity
and expects the info tab to be viewed. Then clicks on the practice tab and navigates away from the info tab to the practice tab.Considering the above setup of the test, we need to have both the feature flags enabled.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are using separate feature flag for info tab and practice tab. I think we should remove this line
onView(withId(R.id.topic_name_text_view)).check(matches(isDisplayed()))
from funlaunchTopicActivity
. So that we can properly test with both feature flag on and off.