.onModuleConfigChanged(ModuleType.SETUP_LIST_TWO_CELL_CONTAINER, true);Nit: Maybe change it to be false and update the expected results?
public void testCreateInputContextForRanking_WithTwoCell() {See comment of the test below.
public void testGetCombinedRankedModules_WithTwoCell() {This test looks very similar to testGetCombinedRankedModules but giving a different set of manual ordering modules. Is it necessary?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Mostly nits.
Thanks for reviewing! Addressed the comments.
.onModuleConfigChanged(ModuleType.SETUP_LIST_TWO_CELL_CONTAINER, true);Nit: Maybe change it to be false and update the expected results?
Updated.
See comment of the test below.
Addressed below
This test looks very similar to testGetCombinedRankedModules but giving a different set of manual ordering modules. Is it necessary?
IMO, both are necessary.
`testCreateInputContextForRanking_WithTwoCell` primarily tests the logic within the `createInputContextForRankingAndUpdateManuallyRankedModuleList()` and ensures the two-cell container isn't sent for ranking.
`testGetCombinedRankedModules_WithTwoCell` tests the logic within the `getCombinedRankedModules()` method and ensures the two-cell container is placed correctly at the top of the display list.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
public void testGetCombinedRankedModules_WithTwoCell() {Gazal AgarwalThis test looks very similar to testGetCombinedRankedModules but giving a different set of manual ordering modules. Is it necessary?
IMO, both are necessary.
`testCreateInputContextForRanking_WithTwoCell` primarily tests the logic within the `createInputContextForRankingAndUpdateManuallyRankedModuleList()` and ensures the two-cell container isn't sent for ranking.
`testGetCombinedRankedModules_WithTwoCell` tests the logic within the `getCombinedRankedModules()` method and ensures the two-cell container is placed correctly at the top of the display list.
My point is: createInputContextForRankingAndUpdateManuallyRankedModuleList () only cares about the value of the build#hasManualOrdering(). Thus, it doesn't matter whether the module is SETUP_LIST_TWO_CELL_CONTAINER or ADDRESS_BAR_PLACEMENT_PROMO. This looks like a duplication of tests. Same as getCombinedRankedModules(). Unless it handles SETUP_LIST_TWO_CELL_CONTAINER differently, otherwise, we can remove this test or adding SETUP_LIST_TWO_CELL_CONTAINER to the other tests. Does it make sense to you?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
public void testGetCombinedRankedModules_WithTwoCell() {Gazal AgarwalThis test looks very similar to testGetCombinedRankedModules but giving a different set of manual ordering modules. Is it necessary?
Xi HanIMO, both are necessary.
`testCreateInputContextForRanking_WithTwoCell` primarily tests the logic within the `createInputContextForRankingAndUpdateManuallyRankedModuleList()` and ensures the two-cell container isn't sent for ranking.
`testGetCombinedRankedModules_WithTwoCell` tests the logic within the `getCombinedRankedModules()` method and ensures the two-cell container is placed correctly at the top of the display list.
My point is: createInputContextForRankingAndUpdateManuallyRankedModuleList () only cares about the value of the build#hasManualOrdering(). Thus, it doesn't matter whether the module is SETUP_LIST_TWO_CELL_CONTAINER or ADDRESS_BAR_PLACEMENT_PROMO. This looks like a duplication of tests. Same as getCombinedRankedModules(). Unless it handles SETUP_LIST_TWO_CELL_CONTAINER differently, otherwise, we can remove this test or adding SETUP_LIST_TWO_CELL_CONTAINER to the other tests. Does it make sense to you?
Oh I see what you mean. I mistakenly thought you meant `testCreateInputContextForRanking_WithTwoCell` and `testGetCombinedRankedModules_WithTwoCell` both aren't needed (hence my previous explanation).
This test looks very similar to testGetCombinedRankedModules but giving a different set of manual ordering modules. Is it necessary?
You're right, the module doesn't really matter. Removed `testGetCombinedRankedModules_WithTwoCell`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
public void testCreateInputContextForRanking_WithTwoCell() {Nit: this looks like a duplicate of testCreateInputContextForRanking:) It's up to you whether to keep it or not.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
public void testCreateInputContextForRanking_WithTwoCell() {Nit: this looks like a duplicate of testCreateInputContextForRanking:) It's up to you whether to keep it or not.
Yeah I see what you mean. I feel that we should have some test case to check the rank of SETUP_LIST_TWO_CELL_CONTAINER. I've made a note to see if I can have a single parameterized test for the use case.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[SetupList] Integrate Two-Cell Layout Logic (2/2)
This change integrates the conditional logic for displaying the Setup
List using the new two-cell container UI. The layout choice is based on
the time elapsed since the Setup List was first shown to the user. This
completes the implementation of the time-based two-cell layout for the
Setup List.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |