Bug 1595915 - Don't check #fill-login-popup visibility in pwgen context menu tests. r=sfoster

For now I didn't change tests to not open the submenu when only generating a password as it should be harmless.

Differential Revision: https://phabricator.services.mozilla.com/D60641

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matthew Noorenberghe 2020-01-22 23:51:16 +00:00
Родитель b0e16a062a
Коммит 9a1ef5ab4c
2 изменённых файлов: 0 добавлений и 9 удалений

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

@ -49,7 +49,6 @@ add_task(async function test_hidden_by_prefs() {
await openPasswordContextMenu(browser, passwordInputSelector);
let loginPopup = document.getElementById("fill-login-popup");
let generatedPasswordItem = document.getElementById(
"fill-login-generated-password"
);
@ -57,8 +56,6 @@ add_task(async function test_hidden_by_prefs() {
"generated-password-separator"
);
// Check the content of the password manager popup
ok(BrowserTestUtils.is_visible(loginPopup), "popup is visible");
ok(
!BrowserTestUtils.is_visible(generatedPasswordItem),
"generated password item is hidden"
@ -89,7 +86,6 @@ add_task(async function test_fill_hidden_by_login_saving_disabled() {
await openPasswordContextMenu(browser, passwordInputSelector);
let loginPopup = document.getElementById("fill-login-popup");
let generatedPasswordItem = document.getElementById(
"fill-login-generated-password"
);
@ -97,8 +93,6 @@ add_task(async function test_fill_hidden_by_login_saving_disabled() {
"generated-password-separator"
);
// Check the content of the password manager popup
ok(BrowserTestUtils.is_visible(loginPopup), "popup is visible");
ok(
!BrowserTestUtils.is_visible(generatedPasswordItem),
"generated password item is hidden"

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

@ -685,7 +685,6 @@ async function doFillGeneratedPasswordContextMenuItem(browser, passwordInput) {
await SimpleTest.promiseFocus(browser);
await openPasswordContextMenu(browser, passwordInput);
let loginPopup = document.getElementById("fill-login-popup");
let generatedPasswordItem = document.getElementById(
"fill-login-generated-password"
);
@ -693,8 +692,6 @@ async function doFillGeneratedPasswordContextMenuItem(browser, passwordInput) {
"generated-password-separator"
);
// Check the content of the password manager popup
ok(BrowserTestUtils.is_visible(loginPopup), "Popup is visible");
ok(
BrowserTestUtils.is_visible(generatedPasswordItem),
"generated password item is visible"