Bug 1438702 - Skip test_credit_card_autofill_section when CC autofill is disabled. r=jaws

MozReview-Commit-ID: B1qa9BhIa05

--HG--
extra : rebase_source : 90c896bb1ebe84b687cc1b1d1698542fd0c69aa0
This commit is contained in:
Matthew Noorenberghe 2018-02-21 23:00:08 -08:00
Родитель 181642ad79
Коммит 05f00ac1ee
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1,4 +1,7 @@
[DEFAULT]
prefs =
extensions.formautofill.available='on'
extensions.formautofill.creditCards.available=true
support-files =
head.js
privacypane_tests_perwindow.js

Просмотреть файл

@ -25,6 +25,9 @@ add_task(async function test_address_autofill_section() {
});
add_task(async function test_credit_card_autofill_section() {
if (!Services.prefs.getBoolPref("extensions.formautofill.creditCards.available")) {
return;
}
let prefs = await openPreferencesViaOpenPreferencesAPI("privacy-credit-card-autofill", {leaveOpen: true});
is(prefs.selectedPane, "panePrivacy", "Privacy pane is selected by default");
let doc = gBrowser.contentDocument;