gui tests: provider-find leaves the window's in-use signal out of what the page posted
10c4dc109posts /api/update/using on the first pointer or key event, so provider-find's "only the order was posted" went red in every language and both engines on mote atca7a39291(something else was posted: ["/api/update/using"]). The recorder now leaves that path out; it is the window's, not the Providers page's. Run on mote: provider-find with the GUI files of the commit before it, 154 of 154 in chromium and webkit. Not tried: other GUI files with a strict post recorder (8 record every non-GET); none of them were run here.
This commit is contained in:
@@ -52,7 +52,8 @@ function fixture(lang) {
|
||||
providers.providers = order.map((id) => providers.providers.find((p) => p.id === id));
|
||||
return json(providers);
|
||||
}
|
||||
if (request.method() !== "GET") posted.push(url.pathname);
|
||||
// the window saying it is in use (update/using) is not the page's doing
|
||||
if (request.method() !== "GET" && url.pathname !== "/api/update/using") posted.push(url.pathname);
|
||||
if (url.pathname === "/api/providers") return json(providers);
|
||||
if (url.pathname === "/api/groups") return json({ groups: [] });
|
||||
if (url.pathname === "/api/plugins") return json({ plugins: [] });
|
||||
|
||||
Reference in New Issue
Block a user