test: Fixed running tests for pinned tabs and exported machitests, b=no-bug, c=tabs, glance, tests, folders, workspaces

This commit is contained in:
mr. m
2026-01-16 21:33:45 +01:00
parent 6d9347acec
commit fa7186b3d8
55 changed files with 263 additions and 3198 deletions

View File

@@ -4,8 +4,8 @@ menu items.
Mac makes this astonishingly painful to test since their help menu is special magic,
but we can at least test it on the other platforms.*/
const NORMAL_PAGE = "https://example.com";
const PHISH_PAGE = "https://www.itisatrap.org/firefox/its-a-trap.html";
const NORMAL_PAGE = "http://example.com";
const PHISH_PAGE = "http://www.itisatrap.org/firefox/its-a-trap.html";
/**
* Opens a new tab and browses to some URL, tests for the existence
@@ -13,13 +13,14 @@ const PHISH_PAGE = "https://www.itisatrap.org/firefox/its-a-trap.html";
* the state of the menu once opened. This function will take care of
* opening and closing the menu.
*
* @param {string} url The URL to browse the tab to.
* @param {Function} testFn
* @param url (string)
* The URL to browse the tab to.
* @param testFn (function)
* The function to run once the menu has been opened. This
* function will be passed the "reportMenu" and "errorMenu"
* DOM nodes as arguments, in that order. This function
* should not yield anything.
* @returns {Promise} Promise that resolves when the test is complete
* @returns Promise
*/
function check_menu_at_page(url, testFn) {
return BrowserTestUtils.withNewTab(