Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

remove tab tray feature flag #11176

Merged
merged 14 commits into from
Jun 5, 2020

Conversation

boek
Copy link
Contributor

@boek boek commented Jun 3, 2020

Fixes #11171

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

After merge

  • Milestone: Make sure issues finished by this pull request are added to the milestone of the version currently in development.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@boek boek force-pushed the ni_remove_tab_tray_feature_flag branch 2 times, most recently from 865d095 to 2c2500b Compare June 3, 2020 17:45
@boek boek force-pushed the ni_remove_tab_tray_feature_flag branch from e69470a to 17cf15c Compare June 5, 2020 06:21
@boek
Copy link
Contributor Author

boek commented Jun 5, 2020

All tests in CollectionTest were ignored. Easiest to just take the file out and follow up in a new PR

@boek boek force-pushed the ni_remove_tab_tray_feature_flag branch from a0a24b3 to 3eae3f7 Compare June 5, 2020 07:10
@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2020

Codecov Report

Merging #11176 into master will increase coverage by 1.40%.
The diff coverage is 18.52%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #11176      +/-   ##
============================================
+ Coverage     19.15%   20.56%   +1.40%     
- Complexity      600      659      +59     
============================================
  Files           360      368       +8     
  Lines         14839    15034     +195     
  Branches       2013     2018       +5     
============================================
+ Hits           2842     3091     +249     
+ Misses        11735    11652      -83     
- Partials        262      291      +29     
Impacted Files Coverage Δ Complexity Δ
.../main/java/org/mozilla/fenix/ExperimentsManager.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...pp/src/main/java/org/mozilla/fenix/FeatureFlags.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...rc/main/java/org/mozilla/fenix/FenixApplication.kt 11.39% <0.00%> (-0.86%) 4.00 <0.00> (ø)
...pp/src/main/java/org/mozilla/fenix/HomeActivity.kt 8.92% <0.00%> (+0.25%) 10.00 <0.00> (ø)
...illa/fenix/addons/InstalledAddonDetailsFragment.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...a/org/mozilla/fenix/browser/BaseBrowserFragment.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../java/org/mozilla/fenix/browser/BrowserFragment.kt 0.00% <ø> (ø) 0.00 <0.00> (ø)
...main/java/org/mozilla/fenix/cfr/SearchWidgetCFR.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../fenix/collections/CollectionCreationController.kt 50.00% <0.00%> (-0.91%) 0.00 <0.00> (ø)
...la/fenix/collections/CollectionCreationFragment.kt 89.79% <ø> (-0.21%) 6.00 <0.00> (ø)
... and 121 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c47b98...2d53534. Read the comment docs.

@boek boek requested a review from darkwing June 5, 2020 07:33
@@ -340,9 +340,9 @@ class BookmarksTest {
}

multipleSelectionToolbar {
}.clickOpenNewTab {
}.clickOpenNewTab { }.openTabDrawer {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lets open an issue for ux flows we didn't account for and review with Nicole

UXFLOW

@@ -0,0 +1,367 @@
///* This Source Code Form is subject to the terms of the Mozilla Public
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: file issue to fix this file after we land and we want to fix the tests

}.openHistory {
longTapSelectItem(firstWebPage.url)
openActionBarOverflowOrOptionsMenu(activityTestRule.activity)
}

multipleSelectionToolbar {
}.clickOpenNewTab {
}.clickOpenNewTab { }.openTabDrawer {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

UXFLOW : same as bookmarks

@@ -235,9 +236,9 @@ class HistoryTest {
}

multipleSelectionToolbar {
}.clickOpenPrivateTab {
}.clickOpenPrivateTab { }.openTabDrawer {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

UXFLOW : same as bookmarks

verifyExistingOpenTabs("Test_Page_${index + 1}")
verifyCloseTabsButton("Test_Page_${index + 1}")
closeTabViaXButton("Test_Page_${index + 1}")
verifySnackBarText("Tab closed")
snackBarButtonClick("UNDO")
// verifyExistingOpenTabs("Test_Page_${index + 1}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo file bug to fix this intermittent test failure with swiping

}
}
}

@Test
@Ignore("For some reason this intermittently fails with the drawer :(")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: same as above, file issue to fix intermittent test failure

@@ -392,7 +387,7 @@ class HomeScreenRobot {
}

fun openTabsListThreeDotMenu(interact: ThreeDotMenuMainRobot.() -> Unit): ThreeDotMenuMainRobot.Transition {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: open issue to clean up homescreenrobot unused functions

return HomeScreenRobot.Transition()
}

fun toggleToNormalTabs(interact: TabDrawerRobot.() -> Unit): Transition {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: nit: file item in issue to rename this to click instead of toggle

fun closeAllTabs(interact: HomeScreenRobot.() -> Unit): HomeScreenRobot.Transition {
mDevice.waitNotNull(Until.findObject(By.text("Close all tabs")), waitingTime)
fun closeAllTabs(interact: TabDrawerRobot.() -> Unit): TabDrawerRobot.Transition {
// mDevice.waitNotNull(Until.findObject(By.text("Close all tabs")), waitingTime)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: add nit to issue to clean this comment

@@ -46,16 +39,6 @@ import mozilla.components.feature.tab.collections.Tab as ComponentTab
*/
@SuppressWarnings("TooManyFunctions")
interface SessionControlController {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: nit: lets rename this from sessionControlController to home something controller

@darkwing darkwing merged commit 52c2fdb into mozilla-mobile:master Jun 5, 2020
@boek boek deleted the ni_remove_tab_tray_feature_flag branch June 5, 2020 17:59
@liuche liuche mentioned this pull request Jun 10, 2020
29 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove tabtray feature flag
4 participants