Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/*
* This file contains tests for the Preferences search bar.
*/
/**
* Test for searching for the "Settings - Site Data" subdialog.
*/
add_task(async function () {
await SpecialPowers.pushPrefEnv({
set: [["cookiebanners.ui.desktop.enabled", false]],
});
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {
leaveOpen: true,
});
await evaluateSearchResults("cookies", ["siteDataGroup", "trackingGroup"]);
BrowserTestUtils.removeTab(gBrowser.selectedTab);
});
add_task(async function () {
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {
leaveOpen: true,
});
await evaluateSearchResults("site data", ["siteDataGroup"]);
BrowserTestUtils.removeTab(gBrowser.selectedTab);
});
add_task(async function () {
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {
leaveOpen: true,
});
await evaluateSearchResults("cache", ["siteDataGroup"]);
BrowserTestUtils.removeTab(gBrowser.selectedTab);
});
add_task(async function () {
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {
leaveOpen: true,
});
await evaluateSearchResults("cross-site", ["trackingGroup"]);
BrowserTestUtils.removeTab(gBrowser.selectedTab);
});