зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443735 - Use better selectors to find payment request add/edit links. r=sfoster
MozReview-Commit-ID: KSjAiY8QfIz --HG-- extra : rebase_source : 78bc4774df5025a4e9bdde2db8929ccefcc42888
This commit is contained in:
Родитель
3c23b481ba
Коммит
d17778463c
|
@ -42,7 +42,7 @@ add_task(async function test_add_link() {
|
|||
return Object.keys(state.savedAddresses).length == 0;
|
||||
}, "No saved addresses when starting test");
|
||||
|
||||
let addLink = content.document.querySelector("address-picker a");
|
||||
let addLink = content.document.querySelector("address-picker .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
@ -124,7 +124,7 @@ add_task(async function test_edit_link() {
|
|||
return Object.keys(state.savedAddresses).length == 1;
|
||||
}, "One saved address when starting test");
|
||||
|
||||
let editLink = content.document.querySelector("address-picker a:nth-of-type(2)");
|
||||
let editLink = content.document.querySelector("address-picker .edit-link");
|
||||
is(editLink.textContent, "Edit", "Edit link text");
|
||||
|
||||
editLink.click();
|
||||
|
@ -203,7 +203,7 @@ add_task(async function test_add_payer_contact_name_email_link() {
|
|||
return Object.keys(state.savedAddresses).length == 0;
|
||||
}, "No saved addresses when starting test");
|
||||
|
||||
let addLink = content.document.querySelector("address-picker.payer-related a");
|
||||
let addLink = content.document.querySelector("address-picker.payer-related .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
@ -286,7 +286,7 @@ add_task(async function test_edit_payer_contact_name_email_phone_link() {
|
|||
}, "One saved addresses when starting test");
|
||||
|
||||
let editLink =
|
||||
content.document.querySelector("address-picker.payer-related a:nth-of-type(2)");
|
||||
content.document.querySelector("address-picker.payer-related .edit-link");
|
||||
is(editLink.textContent, "Edit", "Edit link text");
|
||||
|
||||
editLink.click();
|
||||
|
|
|
@ -12,7 +12,7 @@ add_task(async function test_add_link() {
|
|||
PaymentTestUtils: PTU,
|
||||
} = ChromeUtils.import("resource://testing-common/PaymentTestUtils.jsm", {});
|
||||
|
||||
let addLink = content.document.querySelector("payment-method-picker a");
|
||||
let addLink = content.document.querySelector("payment-method-picker .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
@ -74,7 +74,7 @@ add_task(async function test_edit_link() {
|
|||
PaymentTestUtils: PTU,
|
||||
} = ChromeUtils.import("resource://testing-common/PaymentTestUtils.jsm", {});
|
||||
|
||||
let editLink = content.document.querySelector("payment-method-picker a:nth-of-type(2)");
|
||||
let editLink = content.document.querySelector("payment-method-picker .edit-link");
|
||||
is(editLink.textContent, "Edit", "Edit link text");
|
||||
|
||||
editLink.click();
|
||||
|
@ -134,7 +134,7 @@ add_task(async function test_private_persist_defaults() {
|
|||
PaymentTestUtils: PTU,
|
||||
} = ChromeUtils.import("resource://testing-common/PaymentTestUtils.jsm", {});
|
||||
|
||||
let addLink = content.document.querySelector("payment-method-picker a");
|
||||
let addLink = content.document.querySelector("payment-method-picker .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
@ -157,7 +157,7 @@ add_task(async function test_private_persist_defaults() {
|
|||
PaymentTestUtils: PTU,
|
||||
} = ChromeUtils.import("resource://testing-common/PaymentTestUtils.jsm", {});
|
||||
|
||||
let addLink = content.document.querySelector("payment-method-picker a");
|
||||
let addLink = content.document.querySelector("payment-method-picker .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
@ -189,7 +189,7 @@ add_task(async function test_private_card_adding() {
|
|||
PaymentTestUtils: PTU,
|
||||
} = ChromeUtils.import("resource://testing-common/PaymentTestUtils.jsm", {});
|
||||
|
||||
let addLink = content.document.querySelector("payment-method-picker a");
|
||||
let addLink = content.document.querySelector("payment-method-picker .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
|
|
@ -23,7 +23,7 @@ add_task(async function test_dropdown() {
|
|||
PaymentTestUtils: PTU,
|
||||
} = ChromeUtils.import("resource://testing-common/PaymentTestUtils.jsm", {});
|
||||
|
||||
let addLink = content.document.querySelector("address-picker a");
|
||||
let addLink = content.document.querySelector("address-picker .add-link");
|
||||
is(addLink.textContent, "Add", "Add link text");
|
||||
|
||||
addLink.click();
|
||||
|
|
Загрузка…
Ссылка в новой задаче