Commit 00d2bc66 authored by Tom Glowka's avatar Tom Glowka
Browse files

Bug 1490092 - Clean opened tabs after Open request in tab test; r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D5511

--HG--
extra : moz-landing-system : lando
parent 4f8277ed
......@@ -26,22 +26,23 @@ add_task(async function() {
await performRequest("GET");
newTab = await openLastRequestInTab();
await checkTabResponse(newTab, "GET");
gBrowser.removeCurrentTab();
// Open POST request in new tab
await performRequest("POST", "application/x-www-form-urlencoded", "foo=bar&baz=42");
newTab = await openLastRequestInTab();
await checkTabResponse(newTab, "POST", "application/x-www-form-urlencoded",
"foo=bar&baz=42");
gBrowser.removeCurrentTab();
// Open POST application/json request in new tab
await performRequest("POST", "application/json", '{"foo":"bar"}');
newTab = await openLastRequestInTab();
await checkTabResponse(newTab, "POST", "application/json", '{"foo":"bar"}');
gBrowser.removeCurrentTab();
await teardown(monitor);
gBrowser.removeCurrentTab();
async function openLastRequestInTab() {
const wait = waitForDOM(contextMenuDoc, "#request-list-context-newtab");
const requestItems = document.querySelectorAll(".request-list-item");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment