Bug 1771740 - Do not call `removeAllRecords` in setStorage r=sgalich

In Bug 1762070, we added `setStorage` to replace `saveAddress` and
`saveCreditCard`. However, adding `removeAllRecords` in `setStorage`
changes the flow for testcases that don't expect `saveAddress/CreditCard`
removing previous saved records.

Differential Revision: https://phabricator.services.mozilla.com/D147658
This commit is contained in:
Dimi 2022-05-30 17:39:47 +00:00
Родитель 72e77b6025
Коммит 852ff3c8d4
1 изменённых файлов: 0 добавлений и 1 удалений

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

@ -770,7 +770,6 @@ async function testDialog(url, testFn, arg = undefined) {
* @param {...Object} items Can either be credit card or address objects
*/
async function setStorage(...items) {
await removeAllRecords();
for (let item of items) {
if (item["cc-number"]) {
await saveCreditCard(item);