Skip to content

Commit 2f372a0

Browse files
author
vlopezgarcia
committed
Bug 2044296 - Disable Sync/FxA related tests for firefox enterprise
1 parent 93b8270 commit 2f372a0

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

browser/base/content/test/sync/browser.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
support-files = ["head.js"]
33

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

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

810
["browser_contextmenu_sendpage.js"]
911
skip-if = [
@@ -15,18 +17,22 @@ skip-if = [
1517
["browser_contextmenu_sendtab.js"]
1618

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

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

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

2530
["browser_sendtab_toolbarbutton.js"]
2631

2732
["browser_signed_out_avatar_variants.js"]
2833

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

3238
["browser_synced_tabs_view.js"]

browser/base/content/test/sync/browser_contextmenu_sendtab.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ function updateTabContextMenu(tab = gBrowser.selectedTab) {
5252
menu.hidePopup();
5353
}
5454

55+
function add_task_skip(fn) {
56+
add_task({ skip_if: () => AppConstants.MOZ_ENTERPRISE }, fn);
57+
}
58+
5559
add_setup(async function () {
5660
await SpecialPowers.pushPrefEnv({
5761
set: [["test.wait300msAfterTabSwitch", true]],
@@ -104,7 +108,8 @@ async function checkForConfirmationHint(targetId) {
104108
sandbox.restore();
105109
}
106110

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

119-
add_task(
124+
// Test relies on fxa-toolbar-menu-button which is hidden in enterprise.
125+
add_task_skip(
120126
async function test_sendTabToDevice_showsConfirmationHint_onOverflowMenu() {
121127
// We need to change the fxastatus from "not_configured" to show the FxA button.
122128
is(
@@ -203,7 +209,8 @@ add_task(async function test_tab_contextmenu() {
203209
sandbox.restore();
204210
});
205211

206-
add_task(async function test_tab_contextmenu_send_to_mobile() {
212+
// Test mocks FxA mobile devices; enterprise backend does not serve them.
213+
add_task_skip(async function test_tab_contextmenu_send_to_mobile() {
207214
let mobileFxaDevices = [
208215
{
209216
id: 1,

browser/components/asrouter/tests/browser/browser.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ skip-if = [
3838
https_first_disabled = true
3939

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

4243
["browser_asrouter_milestone_message_cfr.js"]
4344

0 commit comments

Comments
 (0)