Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Issue 2806743004: Fixing testBrowsingPostEntryWithButton flakiness. (Closed)

Created:
3 years, 8 months ago by liaoyuke
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, baxley+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, huangml+watch_chromium.org, liaoyuke+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing testBrowsingPostEntryWithButton flakiness. This test has been flaky on devices because Earl Grey fails to synchronize with omnibox text. This CL first fixes the flakiness by adding a wait to wait for omnibox text, and then this test seems to be more related to form submission, so moving it to FormsTestCase. BUG= Review-Url: https://codereview.chromium.org/2806743004 Cr-Commit-Position: refs/heads/master@{#463415} Committed: https://chromium.googlesource.com/chromium/src/+/33c5ac234dc93a3cfc31fda63fe716d8d2a40410

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Patch Set 3 : Remove duplicate using expression. #

Patch Set 4 : Re-factoring to use helper methods #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -30 lines) Patch
M ios/chrome/browser/web/browsing_egtest.mm View 1 chunk +0 lines, -28 lines 0 comments Download
M ios/chrome/browser/web/forms_egtest.mm View 1 2 3 3 chunks +24 lines, -2 lines 4 comments Download

Messages

Total messages: 41 (11 generated)
liaoyuke
Hey Mike, Eugene, PTAL. Thank you very much!
3 years, 8 months ago (2017-04-07 22:21:28 UTC) #3
Eugene But (OOO till 7-30)
Do we understand why this test fails? Is it different issue from testBrowsingPostEntryWithKeyboard, which gchatz ...
3 years, 8 months ago (2017-04-07 22:48:22 UTC) #5
gchatz
On 2017/04/07 22:48:22, Eugene But wrote: > Do we understand why this test fails? Is ...
3 years, 8 months ago (2017-04-07 22:50:40 UTC) #6
Eugene But (OOO till 7-30)
On 2017/04/07 22:50:40, gchatz wrote: > On 2017/04/07 22:48:22, Eugene But wrote: > > Do ...
3 years, 8 months ago (2017-04-07 22:52:42 UTC) #7
gchatz
On 2017/04/07 22:50:40, gchatz wrote: > On 2017/04/07 22:48:22, Eugene But wrote: > > Do ...
3 years, 8 months ago (2017-04-07 22:55:01 UTC) #8
baxley
On 2017/04/07 22:55:01, gchatz wrote: > On 2017/04/07 22:50:40, gchatz wrote: > > On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 23:19:20 UTC) #9
gchatz
On 2017/04/07 23:19:20, baxley wrote: > On 2017/04/07 22:55:01, gchatz wrote: > > On 2017/04/07 ...
3 years, 8 months ago (2017-04-08 00:08:09 UTC) #10
gchatz
On 2017/04/08 00:08:09, gchatz wrote: > On 2017/04/07 23:19:20, baxley wrote: > > On 2017/04/07 ...
3 years, 8 months ago (2017-04-08 00:12:29 UTC) #11
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm#newcode368 ios/chrome/browser/web/forms_egtest.mm:368: waitForOmniboxText:base::SysUTF8ToNSString(destinationURL.GetContent())]; Should |waitForOmniboxText:| take std::string instead? I feel that ...
3 years, 8 months ago (2017-04-08 00:16:27 UTC) #12
gchatz
https://codereview.chromium.org/2806743004/diff/1/ios/chrome/test/earl_grey/chrome_earl_grey.mm File ios/chrome/test/earl_grey/chrome_earl_grey.mm (right): https://codereview.chromium.org/2806743004/diff/1/ios/chrome/test/earl_grey/chrome_earl_grey.mm#newcode172 ios/chrome/test/earl_grey/chrome_earl_grey.mm:172: text))] Could the matcher be made a local variable ...
3 years, 8 months ago (2017-04-08 00:17:05 UTC) #13
gchatz
On 2017/04/08 00:17:05, gchatz wrote: > https://codereview.chromium.org/2806743004/diff/1/ios/chrome/test/earl_grey/chrome_earl_grey.mm > File ios/chrome/test/earl_grey/chrome_earl_grey.mm (right): > > https://codereview.chromium.org/2806743004/diff/1/ios/chrome/test/earl_grey/chrome_earl_grey.mm#newcode172 > ...
3 years, 8 months ago (2017-04-08 00:18:34 UTC) #14
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2806743004/diff/1/ios/chrome/test/earl_grey/chrome_earl_grey.mm File ios/chrome/test/earl_grey/chrome_earl_grey.mm (right): https://codereview.chromium.org/2806743004/diff/1/ios/chrome/test/earl_grey/chrome_earl_grey.mm#newcode172 ios/chrome/test/earl_grey/chrome_earl_grey.mm:172: text))] On 2017/04/08 00:17:05, gchatz wrote: > Could the ...
3 years, 8 months ago (2017-04-08 00:20:36 UTC) #15
liaoyuke
https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm#newcode368 ios/chrome/browser/web/forms_egtest.mm:368: waitForOmniboxText:base::SysUTF8ToNSString(destinationURL.GetContent())]; On 2017/04/08 00:16:27, Eugene But wrote: > Should ...
3 years, 8 months ago (2017-04-08 00:43:07 UTC) #16
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm#newcode368 ios/chrome/browser/web/forms_egtest.mm:368: waitForOmniboxText:base::SysUTF8ToNSString(destinationURL.GetContent())]; On 2017/04/08 00:43:07, liaoyuke wrote: > On 2017/04/08 ...
3 years, 8 months ago (2017-04-08 00:55:10 UTC) #17
gchatz
On 2017/04/08 00:55:10, Eugene But wrote: > https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm > File ios/chrome/browser/web/forms_egtest.mm (right): > > https://codereview.chromium.org/2806743004/diff/1/ios/chrome/browser/web/forms_egtest.mm#newcode368 ...
3 years, 8 months ago (2017-04-08 01:03:38 UTC) #18
liaoyuke
I think it depends on whether it's necessary to verify the text or not, is ...
3 years, 8 months ago (2017-04-08 01:22:37 UTC) #19
gchatz
On 2017/04/08 01:22:37, liaoyuke wrote: > I think it depends on whether it's necessary to ...
3 years, 8 months ago (2017-04-08 01:30:21 UTC) #20
liaoyuke
I see, thanks for letting me know this! Let's discuss more about this next Monday! ...
3 years, 8 months ago (2017-04-08 01:33:08 UTC) #21
Eugene But (OOO till 7-30)
> I am in favor of introducing this API. The core of what is being ...
3 years, 8 months ago (2017-04-10 15:39:21 UTC) #22
liaoyuke
PTAL. Thank you very much!
3 years, 8 months ago (2017-04-10 16:51:42 UTC) #24
Eugene But (OOO till 7-30)
lgtm!
3 years, 8 months ago (2017-04-10 17:16:56 UTC) #25
liaoyuke
PTAL! It turns out that FormsTestCase already has a global HTTP Server and a bunch ...
3 years, 8 months ago (2017-04-10 18:34:52 UTC) #26
gchatz
https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm#newcode358 ios/chrome/browser/web/forms_egtest.mm:358: [[EarlGrey selectElementWithMatcher:WebViewContainingText(kExpectedPostData)] Should this use [self waitForExpectedResponse]?
3 years, 8 months ago (2017-04-10 18:43:23 UTC) #27
liaoyuke
https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm#newcode358 ios/chrome/browser/web/forms_egtest.mm:358: [[EarlGrey selectElementWithMatcher:WebViewContainingText(kExpectedPostData)] On 2017/04/10 18:43:23, gchatz wrote: > Should ...
3 years, 8 months ago (2017-04-10 18:48:09 UTC) #28
gchatz
lgtm https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm#newcode358 ios/chrome/browser/web/forms_egtest.mm:358: [[EarlGrey selectElementWithMatcher:WebViewContainingText(kExpectedPostData)] On 2017/04/10 18:48:09, liaoyuke wrote: > ...
3 years, 8 months ago (2017-04-10 20:46:10 UTC) #29
Eugene But (OOO till 7-30)
Still lgtm https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm File ios/chrome/browser/web/forms_egtest.mm (right): https://codereview.chromium.org/2806743004/diff/80001/ios/chrome/browser/web/forms_egtest.mm#newcode358 ios/chrome/browser/web/forms_egtest.mm:358: [[EarlGrey selectElementWithMatcher:WebViewContainingText(kExpectedPostData)] On 2017/04/10 18:48:09, liaoyuke wrote: ...
3 years, 8 months ago (2017-04-10 20:46:45 UTC) #30
liaoyuke
I'll have a follow up CL to clean this test case up. On Mon, Apr ...
3 years, 8 months ago (2017-04-10 20:52:25 UTC) #31
liaoyuke
Thank you all for reviewing! On Mon, Apr 10, 2017 at 1:52 PM Yuke Liao ...
3 years, 8 months ago (2017-04-10 20:52:35 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2806743004/80001
3 years, 8 months ago (2017-04-10 21:59:37 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 22:09:58 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/33c5ac234dc93a3cfc31fda63fe7...

Powered by Google App Engine
This is Rietveld 408576698