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

Issue 2089943002: MD Settings: deflake back/forward navigation test via session restore (Closed)

Created:
4 years, 6 months ago by Dan Beam
Modified:
4 years, 3 months ago
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, groby-ooo-7-16
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: deflake back/forward navigation test via session restore R=creis@chromium.org BUG=620370

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -14 lines) Patch
M chrome/browser/ui/webui/settings/md_settings_ui_browsertest.cc View 3 chunks +43 lines, -14 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Dan Beam
creis: how bad of an idea is this?
4 years, 6 months ago (2016-06-22 02:09:41 UTC) #1
Charlie Reis
[+nick] On 2016/06/22 02:09:41, Dan Beam wrote: > creis: how bad of an idea is ...
4 years, 6 months ago (2016-06-22 18:32:29 UTC) #3
Dan Beam
On 2016/06/22 18:32:29, Charlie Reis wrote: > [+nick] > > On 2016/06/22 02:09:41, Dan Beam ...
4 years, 6 months ago (2016-06-23 21:12:44 UTC) #4
Charlie Reis
On 2016/06/23 21:12:44, Dan Beam wrote: > On 2016/06/22 18:32:29, Charlie Reis wrote: > > ...
4 years, 6 months ago (2016-06-24 23:36:54 UTC) #5
Dan Beam
On 2016/06/24 23:36:54, Charlie Reis wrote: > On 2016/06/23 21:12:44, Dan Beam wrote: > > ...
4 years, 6 months ago (2016-06-24 23:46:15 UTC) #6
ncarter (slow)
4 years, 5 months ago (2016-06-27 17:33:01 UTC) #7
On 2016/06/24 23:46:15, Dan Beam wrote:
> On 2016/06/24 23:36:54, Charlie Reis wrote:
> > On 2016/06/23 21:12:44, Dan Beam wrote:
> > > On 2016/06/22 18:32:29, Charlie Reis wrote:
> > > > [+nick]
> > > > 
> > > > On 2016/06/22 02:09:41, Dan Beam wrote:
> > > > > creis: how bad of an idea is this?
> > > > 
> > > > Yeah, fabricating a session history in a browser test (to avoid
flakiness
> > from
> > > > just navigating and going back) does seem like the wrong thing to do. 
> Like
> > a
> > > > unit test, it could miss all kinds of realistic state, like the contents
> of
> > > > PageState or bindings.
> > > > 
> > > > Nick has been looking at how to make waiting for navigations more
reliable
> > in
> > > > tests.  Maybe he has some ideas about what might be going wrong in the
> > > original
> > > > test?
> > > 
> > > it's not really about reliability.  it's more about speed.  loading
> > md-settings
> > > -> newtab -> md-settings is just too slow on memory bots :(
> > 
> > Oh, that's unfortunate.  Does the middle page need to be the NTP for the
test
> to
> > be meaningful, or could it be about:blank?
> 
> about:blank is a better choice, but I highly doubt that's the real issue.  the
> real issue is loading md-settings twice.
> 
> > 
> > The fake history approach could probably be made to work, but it seems
likely
> to
> > be brittle.  Any time we change what's expected on a NavigationEntry, we
might
> > have to come update this test as well.
> 
> yep, don't really know a way around this

What if we don't wait for load stop, just for commit, for the first navigation
to md-settings?

Powered by Google App Engine
This is Rietveld 408576698