-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix testWhenChangingSortingInThePanelIsReflectedInTheManager UI Test #3454
Fix testWhenChangingSortingInThePanelIsReflectedInTheManager UI Test #3454
Conversation
@@ -61,6 +61,7 @@ class BookmarkSortTests: XCTestCase { | |||
app.dismissPopover(buttonIdentifier: "Hide") | |||
app.openBookmarksPanel() | |||
selectSortByName(mode: .panel) | |||
app.openBookmarksPanel() // Here we do not open the panel, we close it by tapping the shortcut button again. |
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.
I plan to refactor this method in the future; this method, in reality, taps the bookmarks panel button, and if it is not present, it will show it using a keyboard shortcut, and then tap it.
The open
part is confusing because if you call this method and the panel is already opened, it will close it.
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.
We could consider renaming the method to something like clickBookmarksShortcut
perhaps, but I wouldn't block the PR on it.
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.
LGTM, the test passes consistently now and the fix makes sense. Thanks!
@@ -61,6 +61,7 @@ class BookmarkSortTests: XCTestCase { | |||
app.dismissPopover(buttonIdentifier: "Hide") | |||
app.openBookmarksPanel() | |||
selectSortByName(mode: .panel) | |||
app.openBookmarksPanel() // Here we do not open the panel, we close it by tapping the shortcut button again. |
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.
We could consider renaming the method to something like clickBookmarksShortcut
perhaps, but I wouldn't block the PR on it.
# By Dax the Duck (5) and others # Via GitHub (4) and Diego Rey Mendez (1) * main: (26 commits) PIR broker configs: Add sub actions to ExpectationAction (#3452) Fix Neighbor Report Broker JSON and include optOutUrl for all brokers (#3463) Freemium DBP: Feature Branch to Main PR (#3426) Remove noisy PIR pixels (#3459) Bump version to 1.112.0 (290) Set marketing version to 1.112.0 Update embedded files update fe onboarding (#3415) fire pixels when showing the error screen (#3462) Disable NTP animation when toggling Privacy Feed (#3460) Bump version to 1.111.0 (289) Check the config test pixel from the subscription monitor (#3455) Update OnboardingUserScript to use a weak script broker reference (#3456) fix flaky bookmark store tests (#3431) Workaround for stuck scans on Xcode 16 (#3453) Set autohidesScrollers in Bookmarks Manager; Fix scrollers positioning (#3451) fix Suggestions not reacting to clicks after being interacted with using keyboard (#3457) Fix testWhenChangingSortingInThePanelIsReflectedInTheManager UI Test (#3454) add contextual onboarding pixels (#3447) Bump version to 1.111.0 (288) ... # Conflicts: # DuckDuckGo/Preferences/View/PreferencesViewController.swift
Task/Issue URL: https://app.asana.com/0/1201037661562251/1208616327102876/f
Tech Design URL:
CC:
Description:
Fixes
testWhenChangingSortingInThePanelIsReflectedInTheManager
UI test. The problem is that depending on the window size, the bookmarks panel might be above the sort button in the manager, causing it not to be tappable.This started happening in the latest internal because we added a new option (delete bookmark) on the bookmarks manager, which pushed the sort button to the right.
Steps to test this PR:
We should run the workflow and see if it works.
Definition of Done:
Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation