Bug 1569341 - Update test_login_item.html expectations to be correct. r=bustage-fix on a CLOSED TREE

--HG--
extra : amend_source : f028020d0e27315bd680714c80f6330474c05dc1
This commit is contained in:
Tim Nguyen 2019-07-27 04:14:41 +03:00
parent 7334e101f1
commit e047b206d0

View File

@ -98,7 +98,7 @@ add_task(async function test_edit_login() {
is(document.l10n.getAttributes(gLoginItem.shadowRoot.querySelector(".time-changed")).args.timeChanged, TEST_LOGIN_1.timePasswordChanged, "time-changed should be populated");
is(document.l10n.getAttributes(gLoginItem.shadowRoot.querySelector(".time-used")).args.timeUsed, TEST_LOGIN_1.timeLastUsed, "time-used should be populated");
let copyButtons = [...gLoginItem.shadowRoot.querySelectorAll(".copy-button")];
ok(copyButtons.every(button => !isHidden(button)), "The copy buttons should be visible when editing a login");
ok(copyButtons.every(button => isHidden(button)), "The copy buttons should be visible when editing a login");
gLoginItem.shadowRoot.querySelector("input[name='username']").value = "newUsername";
gLoginItem.shadowRoot.querySelector("input[name='password']").value = "newPassword";