Bug 1804904: update about dialog tests with proper expectations for MSIX builds r=mkaply

Differential Revision: https://phabricator.services.mozilla.com/D164672
This commit is contained in:
Ben Hearsum 2022-12-15 14:30:12 +00:00
parent 63bbd7c869
commit aba8a5afb4

View File

@ -24,12 +24,20 @@ add_task(async function verify_distribution_info_hides() {
);
let distroIdField = aboutDialog.document.getElementById("distributionId");
is(distroIdField.value, "");
isnot(distroIdField.style.display, "block");
let distroField = aboutDialog.document.getElementById("distribution");
isnot(distroField.style.display, "block");
if (
AppConstants.platform === "win" &&
Services.sysinfo.getProperty("hasWinPackageId")
) {
is(distroIdField.value, "mozilla-test-distribution-id - 1.0");
is(distroIdField.style.display, "block");
is(distroField.style.display, "block");
} else {
is(distroIdField.value, "");
isnot(distroIdField.style.display, "block");
isnot(distroField.style.display, "block");
}
aboutDialog.close();
});