Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions browser/base/content/test/sync/browser.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
support-files = ["head.js"]

["browser_appmenu_signin_cta_variants.js"]
skip-if = ["enterprise"] # FxA sign-in CTA is not enabled in enterprise builds

["browser_avatar_menu_signin_cta_variants.js"]
skip-if = ["enterprise"] # FxA sign-in CTA is not enabled in enterprise builds

["browser_contextmenu_sendpage.js"]
skip-if = [
Expand All @@ -15,18 +17,22 @@ skip-if = [
["browser_contextmenu_sendtab.js"]

["browser_fxa_badge.js"]
skip-if = ["enterprise"] # FxA badge notifications are not enabled in enterprise builds

["browser_fxa_web_channel.js"]
https_first_disabled = true
support-files = ["browser_fxa_web_channel.html"]
skip-if = ["enterprise"] # FxA web channel messaging is not enabled in enterprise builds

["browser_sendtab_telemetry.js"]
skip-if = ["enterprise"] # Send tab telemetry relies on FxA panel and devices

["browser_sendtab_toolbarbutton.js"]

["browser_signed_out_avatar_variants.js"]

["browser_sync.js"]
support-files = ["!/browser/components/profiles/tests/browser/head.js"]
skip-if = ["enterprise"] # Tests FxA/Sync panel UI states which are disabled in enterprise

["browser_synced_tabs_view.js"]
13 changes: 10 additions & 3 deletions browser/base/content/test/sync/browser_contextmenu_sendtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function updateTabContextMenu(tab = gBrowser.selectedTab) {
menu.hidePopup();
}

function add_task_skip(fn) {
add_task({ skip_if: () => AppConstants.MOZ_ENTERPRISE }, fn);
}

add_setup(async function () {
await SpecialPowers.pushPrefEnv({
set: [["test.wait300msAfterTabSwitch", true]],
Expand Down Expand Up @@ -104,7 +108,8 @@ async function checkForConfirmationHint(targetId) {
sandbox.restore();
}

add_task(async function test_sendTabToDevice_showsConfirmationHint_fxa() {
// Test relies on fxa-toolbar-menu-button which is hidden in enterprise.
add_task_skip(async function test_sendTabToDevice_showsConfirmationHint_fxa() {
// We need to change the fxastatus from "not_configured" to show the FxA button.
is(
document.documentElement.getAttribute("fxastatus"),
Expand All @@ -116,7 +121,8 @@ add_task(async function test_sendTabToDevice_showsConfirmationHint_fxa() {
document.documentElement.setAttribute("fxastatus", "not_configured");
});

add_task(
// Test relies on fxa-toolbar-menu-button which is hidden in enterprise.
add_task_skip(
async function test_sendTabToDevice_showsConfirmationHint_onOverflowMenu() {
// We need to change the fxastatus from "not_configured" to show the FxA button.
is(
Expand Down Expand Up @@ -203,7 +209,8 @@ add_task(async function test_tab_contextmenu() {
sandbox.restore();
});

add_task(async function test_tab_contextmenu_send_to_mobile() {
// Test mocks FxA mobile devices; enterprise backend does not serve them.
add_task_skip(async function test_tab_contextmenu_send_to_mobile() {
let mobileFxaDevices = [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions browser/components/asrouter/tests/browser/browser.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ skip-if = [
https_first_disabled = true

["browser_asrouter_menu_messages.js"]
skip-if = ["enterprise"] # Tests messages in the PanelUI-fxa panel, which is not available in enterprise builds.

["browser_asrouter_milestone_message_cfr.js"]

Expand Down