Commit Graph

653 Commits (407634d0ce9e30372a5bc03e064142fc54a6e550)

Author SHA1 Message Date
mike a d69b5ed456 For #21816: Filename in "Open" PDF dialog overflows screen
Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible.
Changing the downloaded dialog layout to properly display really long file names.
3 years ago
Oana Horvath 4d88c521ac For #22304 & #22256: Disabled failing visitedUrlHistoryTest & editCustomSearchEngineTest tests 3 years ago
AndiAJ 1066acbe1e Improve deleteBookmarkInEditModeTest UI test coverage 3 years ago
AndiAJ ff0befdd1d Improve coverage for cancelCreateBookmarkFolderTest UI test 3 years ago
AndiAJ 979d8a79cd For #18421 re-enable verifyContextOpenImageNewTab, verifyContextOpenLinkNewTab & verifyContextOpenLinkPrivateTab UI tests 3 years ago
Oana Horvath cee72a965b For #21397: disabled homescreen features to improve collections visibility 3 years ago
Oana Horvath f6b83e37b1 For #15624 & #17484: improves tab drawer locator & avoids homescreen refreshing 3 years ago
AndiAJ 71d151ef18 For #18421 re-enable verifyContextCopyLink and verifyContextCopyImageLocation UI tests 3 years ago
AndiAJ 4fe8921a82 For #18421 fix and re-enable verifyContextShareLink, verifyContextSaveImage and verifyContextMixedVariations UI tests 3 years ago
Gabriel Luong b54698a3f2 For #21776 - Class member can have 'private' visibility 3 years ago
AndiAJ 6149f9faf8 Use identifiers instead of hard coded strings 3 years ago
AndiAJ d3651eb0fc For #21747 re-enable start on homepage UI test and refactoring work 3 years ago
AndiAJ b10835992d For #21754 re-enable general settings UI test and refactoring work 3 years ago
AndiAJ 4c343b8b3a For #21004 fix and refactor verifyBasicNavigationToolbarFunctionality UI test 3 years ago
Oana Horvath 52facc9723 For #21628: catch ComposeNotIdleException 3 years ago
Oana Horvath 1234d8f518 For #22095: fix intermittent click failure in verifyRateOnGooglePlayRedirect UI test 3 years ago
Oana Horvath 34ca959661 For #20754: fix intermittent click failure in verifyAboutFirefoxPreview test 3 years ago
Andrei Joltan 3af6abff18
For #22065 fix flaky privateTabsTrayWithOpenedTabTest UI test (#22068)
Co-authored-by: AndiAJ <andiaj@users.noreply.github.com>
3 years ago
AndiAJ 560de4f396 For #21207 fix flaky updateSavedLoginTest UI test 3 years ago
Arturo Mejia 846aefc0f4 For #21723 Align the default value of the custom cookie setting with the UI 3 years ago
AndiAJ 9a3e94eb31 Improve tabsSettingsMenuItemsTest UI test coverage 3 years ago
AndiAJ db2946c78a Fix for ambiguous tabstray_title and with text matcher for audio page 3 years ago
AndiAJ 198f407dd2 For #21769 fix flaky tabMediaControlButtonTest Ui test 3 years ago
Gabriel Luong 0b17b443dc For #21760 - Remove some unused resources 3 years ago
AndiAJ 671dfa59c2 For #21540 fix and re-enable editCustomSearchEngineTest 3 years ago
AndiAJ 58e12b18e6 Disable editCustomSearchEngineTest UI test 3 years ago
AndiAJ 979d99342b For #21620 fix for disabled toggleSearchSuggestions UI test 3 years ago
AndiAJ 64d010dcc8 For #19016 re-enable changeThemeSetting Ui test 3 years ago
AndiAJ c3fdf35c6d For #21540 fix disabled editCustomSearchEngineTest 3 years ago
Oana Horvath e3266ca6e0 For #21006 & #21005: fixed ETP status info display 3 years ago
AndiAJ 2eae152beb Remove openNewTabAndEnterToBrowser() and replace it with enterURLAndEnterToBrowser() in the UI tests 3 years ago
AndiAJ 19c4186f0a Remove closeTabViaXButton() and replace it with closeTab() in the UI tests 3 years ago
AndiAJ c9ca6f01b5 Fix for ambiguous mozac_browser_tabstray_close and with content description 3 years ago
AndiAJ 66ac309d40 Fix for ambiguous tabstray_title and with text 3 years ago
AndiAJ 8d7e5dd4b7 Fix for ambiguous tabstray_close 3 years ago
AndiAJ 681fc216ac Fix for ambiguous tab_item 3 years ago
Noah Bond 1f97ca6ce6
For #21437 - Relocated Home-related settings to its dedicated sub screen (#21722)
* For #21437 - Relocated Home-related settings to its dedicated sub screen

* For #21437 - Updated show top sites toggle text

* PR: Fixed lint warning. Reverted preference keys

* PR: added ignore for UI test

* PR: Added ignore for UI test
3 years ago
Arturo Mejia 0f07703c3e For #21611: Show the jump back in Contextual Hints independently of the home onboarding dialog. 3 years ago
AndiAJ 8a8bbd9517 For #20814 fix flaky tabMediaControlButtonTest UI test 3 years ago
AndiAJ 84c61e24a7 For #21644 fix disabled alwaysStartOnHomeTest UI test 3 years ago
Noah Bond aa28b6f142
For #21360 - Added toggle for search term tab groups (#21615)
* For #21360  - Added toggle for search term tab groups

* For #21360 - Lint cleanup

* PR: Added missing licenses and possibly fixed UI test

* PR: Added a "scrollTo" to potentially fix a UI test

* PR: Added potential fix for alwaysStartOnHomeTest

* PR: Added temporary ignore to alwaysStartOnHomeTest

* PR: added missing ignore comment

* For #21360 - Added missing feature flag driven visibility logic

Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3 years ago
Oana Horvath a4a04173cc For #21540, #21620: disables failing UI tests 3 years ago
Oana Horvath 526501160c For #21441, #21477, #21500, #21499 #21476, #21474: retry dismissing the search bar 3 years ago
Roger Yang 920376ee5b Close #21610: Update Strings for Tab Settings 3 years ago
Aaron Train 2bde49f911 No issue: Fix AssertionError in openThreeDotMenu
fix: ktlint
3 years ago
AndiAJ f72ab0a4f3 For #21540 fix flaky editCustomSearchEngineTest UI test 3 years ago
Andrei Joltan d30583e0e7
For #21442 fix flaky deleteMultipleSelectionTest UI test (#21563)
Co-authored-by: AndiAJ <andiaj@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3 years ago
Roger Yang ddd472d143 No issue: Improve rendering of jump back in 3 years ago
AndiAJ 37e342fd92 For #21478 fix flaky verifyOpenTopSiteNormalTab UI test 3 years ago
Oana Horvath 0ac23486c1 Fixed verifyAboutFirefoxPreview test according with new steps 3 years ago
Oana Horvath 1015072db6 Fixed disabled UI test openExternalLinksInPrivateTest 3 years ago
Elise Richards 777f2d1f12
For #21339: update styles for homescreen show all buttons and jump back in spacing (#21342)
For #21339: Add ignores for intermittent ui tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3 years ago
AndiAJ bf3b669151 Delete browsing data tests UI tests 3 years ago
AndiAJ 06292ac8d6 Fix disabled toggleSearchSuggestions UI Tets and refactoring work 3 years ago
Arturo Mejia f15291757b For #21493 show onboarding dialog for home sections 3 years ago
AndiAJ 10f2074749 Fix disabled shortcutButtonTest UI test 3 years ago
Aaron Train 1418d3f2bd Closes #21441: Fix changeAccessibiltySettings 3 years ago
Oana Horvath 43d1cb233e For #17847: adding back editCustomSearchEngineTest UI test 3 years ago
AndiAJ d534adc932 Improve coverage verifyEmptyBookmarksMenuTest and undoDeleteMultipleSelectionTest UI tests 3 years ago
AndiAJ 3ad0ec1302 Fix for disabled saveLoginFromPromptTest 3 years ago
Oana Horvath 83e3e0b19d No issue: re-enabled swipeToSwitchTabTest 3 years ago
Aaron Train 87e4a250f1 Various UI test fixes and disabling of intermittents 3 years ago
Sebastian Kaspari cd61ef1c1d Issue #21172: Refactor UI tests accessing awesomebar suggestions. 3 years ago
Gabriel Luong 2ae7d5d593 For #20893 - Search term groups in history 3 years ago
AndiAJ 391ff6b5fd Exit onboarding tour UI tests 3 years ago
AndiAJ d4ce149c3e Improve coverage for verifyAboutFirefoxPreview 3 years ago
Gabriel Luong 66a31ddbfc Issue #21099 - Update items under "Jump back in" section to the latest designs 3 years ago
AndiAJ abc881f9f8 New deleteBookmarkInEditModeTest UI test 3 years ago
AndiAJ 9546e50451 Improve coverage for copyBookmarkURLTest 3 years ago
AndiAJ d33df2bedd Improve coverage for addPrivateBrowsingShortcut Ui test 3 years ago
AndiAJ fc806283a5 For #21133 fix openMainMenuSyncItemTest UI test 3 years ago
Michael Comella d4b13ce519 For #21183: remove view hierarchy depth check from excessive resource test.
This doesn't seem to be a high value test: increasing the view hierarchy
depth will only result in a performance problem on low end devices
if there is enough content on the new layer to cause the traversal to
take longer. It's more likely to result in a hard-to-workaround false
positive so we can remove it, like component init count.
3 years ago
Michael Comella 09fe569b30 For #21183: remove component init check from excessive resource test.
This check doesn't seem high value because initializing a component
only indicates a performance problem if it's slow, which is not most
components, so it's likely to result in many false positives. To fix
the intermittent, we won't lose much if we remove it.
3 years ago
Michael Comella 951e49fec4 For #21138: change EXPECTED_RUNBLOCKING to range.
Compared with my local runs, CI sees +1 runBlockingIncrement calls so seems to
take other code paths. As such, we search for a range of rather than a single
value. The main downside I can think of is this could make the test trickier to
debug but we can wait and see if that's a problem in practice before taking
action on it.
3 years ago
Michael Comella 0014f94176 For #21138: re-enable excessive resource use test.
This test wasn't running in CI
https://github.com/mozilla-mobile/fenix/issues/20386 so we changed the
CI configuration so that it will. However, the test was then failing so
this is the revision that unignores the test.

I wonder if componentInit count is useful - it seems like it'd cause
more false positives than not - but I figure we can leave it in and see
how it goes.
3 years ago
Gabriel Luong 4080eba225 For #21037 - Add a delete history menu item
This removes the existing "Delete history" button in the History in favour of a menu item
3 years ago
AndiAJ dd889d8c0d For #21002 update and add missing tabs setting validations 3 years ago
Oana Horvath fe8f4be9b9 For #20702: fix tests flakiness 3 years ago
Oana Horvath a7c45425d7 For #21002: added page main menu items tests 3 years ago
Mugurell 621c388c12 For #17917 - Finish migrating all synthetics usages 3 years ago
Oana Horvath 84767f84ea For #20716: re-enables mainMenuInstallPWATest UI test 3 years ago
Oana Horvath 9920cbeb1d For #20868, #18764: Update Tracking Protection UI tests 3 years ago
Roger Yang c9b2f9e866 Issue #2783: Add snackbar to collection deletion 3 years ago
codrut.topliceanu 77e12f9014 For #20716 - Disables Intermittent failing UI test 3 years ago
Roger Yang 64cd72871f Update Android Components version 3 years ago
Arturo Mejia fd8e6a9c27 For #19886 fix ui tests 3 years ago
Gabriel Luong 4b2b058b4e For #19886 - Remove tracking protection overlay CFR 3 years ago
Aaron Train 5ff2c21849
Filter out test target packages in Flank-x86 (#20841)
* Filter out test target packages in Flank-x86
* Ignore verifyRunBlockingAndStrictModeSuppresionCount
3 years ago
Elise Richards 7fdad978a3
For FNXV2-17067: always show home in background behind search dialog (#20573)
* Navigate to home on toolbar click. Handle back press from search dialog

Update tests to show home behind search dialog. Remove unused test.

Jump back in show all button is clickable behind search dialog

Recently saved bookmarks show all button is clickable behind search dialog

* Add feature flag

* Past explorations show all button is clickable behind search dialog

Handle keyboard in controllers instead of viewholders. Update tests.

Allow collections to be visible behind search dialog

Dismiss keyboard and search dialog with navigateUp instead of just dismissing the keyboard

Verify navigateUp in tests

Adding ignore for flaky UI test

Only resize home behind search dialog

Add ignore for collection intermittent test

Cleanup
3 years ago
AndiAJ 7a02db22c3 Start on home UI tests 3 years ago
Sebastian Kaspari 1cc4ae9ab2 Fix UI tests: SettingsPrivacyTest, DeepLinkTest. 3 years ago
Sebastian Kaspari 7fed8b4ab5 Add preference for enabling/disabling Android Autofill from within the app. 3 years ago
Sebastian Kaspari 971b419d77 Run ktlintFormat to adapt to latest formatting rules. 3 years ago
Michael Comella f7b85a6e95 Closes #20540: always swipe twice to openSettings in ThreeDotMenuMainRobot. 3 years ago
Oana Horvath f37abbe4ae For #20297: close tab to avoid saving the same tab to collection 3 years ago
Mugurell 52e152300d For #20420 - Re-enable shortcutButtonTest
The issue affecting this was resolved in AC.
3 years ago
Michael Comella 6d609bc651 For #19901: integrate Jetback Benchmark (microbenchmark). 3 years ago
Mugurell 094413578c For #20420 - Temporarily disable SearchTest#shortcutButtonTest 3 years ago
Sebastian Kaspari 8b5aef7def Update Kotlin to 1.5.10 (and Coroutines to 1.5.0). 3 years ago
Oana Horvath 81849ec6d0 No issue: adds warning comment to beta & release running tests 3 years ago
Oana Horvath df960c4187 For #10915: fix tests by removing existing session 3 years ago
Oana Horvath ea3e4c9956 No issue: New UI smoke test for the Language menu 3 years ago
Roger Yang e69f3dfbbb Closes #19090: Show snackbar on adding to bookmarks from tabs tray 3 years ago
Oana Horvath d20bebc2a3 For #20000: Re-try swipe on collection items 3 years ago
Arturo Mejia 1d76bc7ca2 For #19922 Update the default autoplay setting to be block audio only 3 years ago
Jonathan Almeida 854da1ac9d Issue #20053: Disabling collection smoke tests temporarily
The changes from #19090 did not fix the issue consistently, and are
causing failures intermittently on-unrelated PRs.

Disabling these tests again until we have another fix for #19090.
3 years ago
AndiAJ 78edf06a7a Text selection tests 3 years ago
Oana Horvath 6278a2b07d For #19090: Re-enable createFirstCollectionTest, shareCollectionTest, deleteCollectionTest 3 years ago
Oana Horvath c5962b2502 For #10587: Fix and re-enable old CollectionTest.kt 3 years ago
AndiAJ 51517bea7e For #19585: disables failing restoreTabCrashedReporterTest UI test 3 years ago
Oana Horvath 1e05e23b23 For #18986: re-enable changeAccessibiltySettings UI test, not failing anymore 3 years ago
Oana Horvath 597c8812f4 Changes to #17416, #19686, #19770 UI smoke tests to remove flakiness 3 years ago
Roger Yang 2e4635334a
Closes #19090: Show snackbar on adding to bookmarks from tabs tray (#19807) 3 years ago
Jonathan Almeida 811dd3e618 Issue #19809: Change default tab tray view to grid layout 3 years ago
Oana Horvath f901f7e92f For #18647: Fixed and re-enabled customTrackingProtectionSettingsTest UI test 3 years ago
Jonathan Almeida bf3f81d271 Issue #19112: Remove old Synced Tabs code 3 years ago
Jonathan Almeida dc11c334b6 Issue #19112: Remove old tab tray code 3 years ago
Oana Horvath e48d285114 No issue: Add more smoke tests coverage 3 years ago
Oana Horvath f3e3f86388 No issue: Change hardcoded package and app name in tests 3 years ago
Oana Horvath 4851bf7545 No issue: cleanup of unused tabs related code in HomeScreenRobot.kt
Deleted SmokeTest#selectTabsButtonVisibilityTest, feature removed
3 years ago
Oana Horvath 60a752f75c No issue: added smoke tests from MediaNotificationTest.kt 3 years ago
Oana Horvath bca8b74263 No issue: Added custom tab UI smoke test 3 years ago
Mugurell d02db131f0 For #19620 - Have MenuScreenShotTest screenshot DefaultBrowser setting again
As a regression from #19590 which added a new setting above the existing
"Set as default browser" setting the settingsTest() needed to be updated to
allow clicking and screenshot of what happens after clicking on the
"Set as default browser" setting which can now be pushed offscreen.
3 years ago
Oana Horvath 0877e4cbb7 For #19415: fixed private browsing button visibility issue 3 years ago
Oana Horvath 5c026d4e7b For #18603: Fix and re-enable startBrowsingButtonTest 3 years ago
AndiAJ 3fc4848aef Fix settingsPrivacyItemsTest 3 years ago
Oana Horvath 9fd7fe3df1 For #15754: Get playback state using MediaSession in MediaNotificationTests 3 years ago
AndiAJ 889cf2e718 For #19468 and #19478 fix intermittent UI tests 3 years ago
AndiAJ 8db42d6d25 Fix flaky UI Tests #19306 #19160 #19404 #19373 3 years ago
Codrut Topliceanu 277034546f
For #18262 - [Credit cards] Turn the "Sync cards across devices" button into a "Sync cards" toggle (#19207)
* For #18262 - Turns "Sync cards/logins" into toggle
3 years ago
Roger Yang 79cf3fc765
Closes #18253: Bookmark and History open new tabs in the background (#19275) 3 years ago
Sebastian Kaspari cd4294d314 Issue #19040 - Fix UI test: settingsPrivacyItemsTest 3 years ago
Mugurell 0f9f439329 For #18591 - Update tests
Some tests trying to "Add to top sites" may fail because of the sticky navbar
now covering that menu item -> scroll the menu up a little.

Some tests that previously were trying to scroll to the bottom of the menu to
interact with navbar options now don't have to. Them trying to interact with
navbar option with the menu opened as collapsed is a good test for the navbar
stickyness.
3 years ago
Elise Richards db76b8fe21
For #19114: check state of sync account when navigating from sync sign in menu item (#19118) 3 years ago
Elise Richards 59c94e447c
For #19005: new tab three-dot menu sync sign in (#19037)
* Show synced tabs or sync account in new tab menu

* Sync sign in item navigates to account settings

* Check account auth and get sync item title

* Look for sync sign in item on home menu for UI test

* Sync sign in menu item UI test
4 years ago
Jonathan Almeida 8bb7abc3fe Disabling tabstray collection tests until #19090 is fixed 4 years ago
Jonathan Almeida 0189fed012 No issue: Use same open tabs tray everywhere 4 years ago
Jonathan Almeida b6f9bbf560 Attempt at fixing openAllTabsInCollectionTest test 4 years ago
Jonathan Almeida 8b1752dd9e Disable/fix tests that rely on Select Tabs button 4 years ago
Oana Horvath 1128f921ad For #18986 & #19016: disabled failing tests changeThemeSetting & changeAccessibiltySettings 4 years ago
MarcLeclair 990bfa7e6d
16900 make navgraph inflation asynchronous (#18889)
* For #16900: implement async navgraph inflation

For #16900: removed nav graph from xml

For #16900: inflate navGraph programatically

For #16900: Made NavGraph inflation asynchronous

For #16900: Changed to block with runBlocking

For #16900: Refactored blocking call into a function

For 16900: NavGraph inflation is now async

We now attach the nav graph (or check if its attached) on every nav call ( an extension function for NavController).
This is done by checking the value of the job stored in PerfNavController.map which keeps track of the job with the NavController as a Key.
If the job hasn't been completed, it will block the main thread until the job is done. The job itself is responsible for attaching the navgraph
to the navcontroller (and the inflation of the latter too)

For 16900: rebased upstream master

For 16900: Rebase on master

For #16900: Fixed Async Navgraph navigation per review comments.

1)The Asynchronous method is now found in NavGraphProvider.kt. It creates a job on the IO dispatcher
2)The Job is tracked through a WeakHashMap from Controller --> NavGraph
3)The Coroutine scope doesn't use MainScope() anymore
4)The Coroutine is cancelled if the Activity is destroyed
5)The tests mockk the blockForNavGraphInflation method through the FenixReoboelectricTestApplication instead of calling the mock every setup()

For #16900: inflateNavGraphAsync now takes navController

For #16900: Pass lifecycleScope to NavGraphProvider

For #16900: removed unused mock

For #16900: Added linter rules for navigate calls

We need linting rules to make sure no one calls the NavController.navigate() methods

For #16900: Added TestRule to help abstract the mocks in the code

For 16900: Fix linting problems

For #16900: Cleaned duplicated code in tests

For #16900: cleaned up NavGraphTestRule for finished test

For #16900: had to revert an accidentally edited file

For #16900: rebased master

* For #16900: Review nits for async navgraph

This is composed of squash commits, the original messages can be found below:

-> DisableNavGraphProviderAssertionRule + kdoc.

Use test rule in RobolectricApplication.

Fix failing CrashReporterControllerTest

Fix blame by -> navigate in tests.

This commit was generated by the following commands only:
```
find app/src/test -type f -exec sed -i '' "/import org.mozilla.fenix.ext.navigateBlockingForAsyncNavGraph/d" {} \;
find app/src/test -type f -exec sed -i "" "s/navigateBlockingForAsyncNavGraph/navigate/g" {} \;
git checkout app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
```

Fix various blame

This is expected to be squashed into the first commit so, if so, it'd
fix the blame.

Move test rule to helpers pkg.

add missing license header

Add import change I missed

fix unused imports

Replace robolectricTestrunner with test rule.

Improve navGraphProvider docs

Remove unnecessary rule as defined by robolectric.

add clarifying comment to robolectric

remove unnecessary space

* For #16900: nit fixes for MozillaNavigateCheck and lint fixes

3 squash commits:
 *Changed violation message and fixed the lint rule for MozillaNavigateCheck
 *Added suppression to NavController.kt
 *Fixed detekt violations

* For 16900: Fixed failing tests

Co-authored-by: Michael Comella <michael.l.comella@gmail.com>
4 years ago
Oana Horvath 78f0086b7e For #17979 & #17840: fix and re-enable UI tests affected by main menu changes 4 years ago
Oana Horvath 358a3a3d4c Fix screenshots tests: showDefaultHomeScreen, bookmarksManagementTest 4 years ago
Arturo Mejia 8ca9f94abb For issue #16557 set autoplay block audio only
by default
4 years ago
Kate Glazko 841dacb69e For 17798: Sync Menu Item 4 years ago
Mugurell 0f0c319896 For #17772 - Collapse browser menu to "Add to Home screen"
The menu will start as collapsed.
Users can then swipe up to expand it.
4 years ago
Elise Richards ca33aef036
For #17770: New tab three-dot menu reorder (#18427)
* Create new menu order for new tab

* Add new tab menu navigation. Dynamically update menu when sync auth is needed. Make new tab menu and browser menu consistent.

* Lint

Lint and refactoring tests

* Tests for default toolbar menu

* Feature flag for request desktop site

Add todos for UI test issue 17979

Add todos for UI tests
4 years ago
AndiAJ e03ffff3b8 Disable failing UI Tests 4 years ago
Oana Horvath 246348501c For #18644: fix metod to verify system notifications 4 years ago
Oana Horvath aacb5e3ebb For #18421: Ignore the ContextMenusTest class because of test failures 4 years ago