|
|
Chromium Code Reviews
DescriptionRe-enable testContextMenuOpenInNewTabFromTallPage on device.
Earl Grey is not synchronizing with WKWebView properly. So adding a wait until
condition to wait for context menu to disappear before proceeding.
BUG=681130
Review-Url: https://codereview.chromium.org/2640783005
Cr-Commit-Position: refs/heads/master@{#444901}
Committed: https://chromium.googlesource.com/chromium/src/+/0b662a9cf9d75b3223e9fad83228e8f6d515cfe4
Patch Set 1 #Patch Set 2 : Update function name #
Total comments: 6
Patch Set 3 : Addressed feedback #
Total comments: 4
Patch Set 4 : Addressed feedback #
Total comments: 2
Patch Set 5 : Update function name #Messages
Total messages: 28 (15 generated)
liaoyuke@chromium.org changed reviewers: + baxley@chromium.org
Hi Mike, Please take a look. Thank you very much!
https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... File ios/chrome/browser/context_menu/context_menu_egtest.mm (right): https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:61: void WaitForMatcherBecomesNil(id<GREYMatcher> matcher) { Can we call it "WaitForMatcher"? I think becoming nil applies to the error argument, rather than the matcher itself, and I think it's an implementation detail the caller doesnt' need. https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:90: WaitForMatcherBecomesNil(contextMenuItemButton); Were you able to verify that this fixes the problem? or is it a speculative fix? https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:193: - (void)testContextMenuOpenInNewTabFromTallPage { Did you have to modify anything to fix this method? Or is it just not flaky anymore?
PTAL. Thanks! https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... File ios/chrome/browser/context_menu/context_menu_egtest.mm (right): https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:61: void WaitForMatcherBecomesNil(id<GREYMatcher> matcher) { On 2017/01/19 22:27:40, baxley wrote: > Can we call it "WaitForMatcher"? I think becoming nil applies to the error > argument, rather than the matcher itself, and I think it's an implementation > detail the caller doesnt' need. Acknowledged. https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:90: WaitForMatcherBecomesNil(contextMenuItemButton); On 2017/01/19 22:27:40, baxley wrote: > Were you able to verify that this fixes the problem? or is it a speculative fix? Speculative. I'll keep an eye on it and once it fails again, I'll revert the CL. https://codereview.chromium.org/2640783005/diff/20001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:193: - (void)testContextMenuOpenInNewTabFromTallPage { On 2017/01/19 22:27:40, baxley wrote: > Did you have to modify anything to fix this method? Or is it just not flaky > anymore? Acknowledged.
The CQ bit was checked by liaoyuke@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM Based on past flake it was ~1/day, which isn't *that* flaky, especially for devices. Please keep an eye on it, and maybe let the sheriffs know. Thanks!
On 2017/01/19 23:00:15, baxley wrote: > LGTM > > Based on past flake it was ~1/day, which isn't *that* flaky, especially for > devices. Please keep an eye on it, and maybe let the sheriffs know. Thanks! Sure! Thank you for reviewing!
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Re-enable testContextMenuOpenInNewTabFromTallPage on device. Earl Grey is not synchronizing with WKWebView properly. So adding a wait until condition to wait for context menu to disappear before proceeding. BUG=681130 ========== to ========== Re-enable testContextMenuOpenInNewTabFromTallPage on device. Earl Grey is not synchronizing with WKWebView properly. So adding a wait until condition to wait for context menu to disappear before proceeding. BUG=681130 ==========
liaoyuke@chromium.org changed reviewers: + eugenebut@chromium.org
Hi Eugene, Do you mind taking a quick look for owner's approval? Thank you very much!
lgtm https://codereview.chromium.org/2640783005/diff/40001/ios/chrome/browser/cont... File ios/chrome/browser/context_menu/context_menu_egtest.mm (right): https://codereview.chromium.org/2640783005/diff/40001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:74: // Earl Grey cannot preperly synchronize with WKWebView, so adding a I would avoid mentioning WKWebView here. How about this comment for a function?: Waits for the context menu to disappear. TODO(crbug.com/): Remove this once EarlGrey is synchronized with context menu. https://codereview.chromium.org/2640783005/diff/40001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:76: ConditionBlock condition = ^{ Could you please move this to WaitForContextMenuDisappeared function.
Thank you for the quick response! https://codereview.chromium.org/2640783005/diff/40001/ios/chrome/browser/cont... File ios/chrome/browser/context_menu/context_menu_egtest.mm (right): https://codereview.chromium.org/2640783005/diff/40001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:74: // Earl Grey cannot preperly synchronize with WKWebView, so adding a On 2017/01/19 23:19:07, Eugene But wrote: > I would avoid mentioning WKWebView here. How about this comment for a function?: > > Waits for the context menu to disappear. TODO(crbug.com/): Remove this once > EarlGrey is synchronized with context menu. Done. https://codereview.chromium.org/2640783005/diff/40001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:76: ConditionBlock condition = ^{ On 2017/01/19 23:19:07, Eugene But wrote: > Could you please move this to WaitForContextMenuDisappeared function. Done.
The CQ bit was checked by liaoyuke@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from baxley@chromium.org, eugenebut@chromium.org Link to the patchset: https://codereview.chromium.org/2640783005/#ps60001 (title: "Addressed feedback")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2640783005/diff/60001/ios/chrome/browser/cont... File ios/chrome/browser/context_menu/context_menu_egtest.mm (right): https://codereview.chromium.org/2640783005/diff/60001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:61: // once EarlGrey is synchronized with context menu. Could you please document |matcher| argument. Sorry, did not realize that your function will need it.
The CQ bit was unchecked by liaoyuke@chromium.org
Patchset #5 (id:80001) has been deleted
Changed function name to WaitForContextMenuItemDisappeared. https://codereview.chromium.org/2640783005/diff/60001/ios/chrome/browser/cont... File ios/chrome/browser/context_menu/context_menu_egtest.mm (right): https://codereview.chromium.org/2640783005/diff/60001/ios/chrome/browser/cont... ios/chrome/browser/context_menu/context_menu_egtest.mm:61: // once EarlGrey is synchronized with context menu. On 2017/01/20 00:00:14, Eugene But wrote: > Could you please document |matcher| argument. Sorry, did not realize that your > function will need it. Done.
The CQ bit was checked by liaoyuke@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from baxley@chromium.org, eugenebut@chromium.org Link to the patchset: https://codereview.chromium.org/2640783005/#ps100001 (title: "Update function name")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 100001, "attempt_start_ts": 1484872003284050,
"parent_rev": "a2fd53c7b0a8b9f0c657e94257059879c8fe7a27", "commit_rev":
"0b662a9cf9d75b3223e9fad83228e8f6d515cfe4"}
Message was sent while issue was closed.
Description was changed from ========== Re-enable testContextMenuOpenInNewTabFromTallPage on device. Earl Grey is not synchronizing with WKWebView properly. So adding a wait until condition to wait for context menu to disappear before proceeding. BUG=681130 ========== to ========== Re-enable testContextMenuOpenInNewTabFromTallPage on device. Earl Grey is not synchronizing with WKWebView properly. So adding a wait until condition to wait for context menu to disappear before proceeding. BUG=681130 Review-Url: https://codereview.chromium.org/2640783005 Cr-Commit-Position: refs/heads/master@{#444901} Committed: https://chromium.googlesource.com/chromium/src/+/0b662a9cf9d75b3223e9fad83228... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/chromium/src/+/0b662a9cf9d75b3223e9fad83228... |
