From 8680c5b844bc831cc71e066b6144d696c49a711e Mon Sep 17 00:00:00 2001 From: Charles-Edouard de la Vergne Date: Tue, 12 Mar 2024 16:20:43 +0100 Subject: [PATCH] Adapt Zemu Tests for new 'sender' field --- tests/zemu/src/blind_compound_deposit.test.js | 4 ++-- tests/zemu/src/chainid.test.js | 8 ++++---- tests/zemu/src/eip1559.test.js | 4 ++-- tests/zemu/src/send.test.js | 4 ++-- tests/zemu/src/send_bsc.test.js | 4 ++-- tests/zemu/src/send_etc.test.js | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/zemu/src/blind_compound_deposit.test.js b/tests/zemu/src/blind_compound_deposit.test.js index 670153af19..6b2ecec567 100644 --- a/tests/zemu/src/blind_compound_deposit.test.js +++ b/tests/zemu/src/blind_compound_deposit.test.js @@ -17,8 +17,8 @@ nano_models.forEach(function(model) { ); await waitForAppScreen(sim); - if (model.letter === 'S') clicks = 8; - else clicks = 6; + if (model.letter === 'S') clicks = 11; + else clicks = 9; await sim.navigateAndCompareSnapshots('.', model.name + '_deposit_eth_compound_blind', [clicks, -1, 0]); await expect(tx).resolves.toEqual({ diff --git a/tests/zemu/src/chainid.test.js b/tests/zemu/src/chainid.test.js index 668b19690e..5e8dd5b905 100644 --- a/tests/zemu/src/chainid.test.js +++ b/tests/zemu/src/chainid.test.js @@ -12,8 +12,8 @@ nano_models.forEach(function(model) { await waitForAppScreen(sim); let clicks; - if (model.letter === 'S') clicks = 10; - else clicks = 6; + if (model.letter === 'S') clicks = 13; + else clicks = 7; await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_112233445566_network', [clicks, -1, 0]); await expect(tx).resolves.toEqual({ @@ -34,8 +34,8 @@ nano_models.forEach(function(model) { await waitForAppScreen(sim); let clicks; - if (model.letter === 'S') clicks = 10; - else clicks = 6; + if (model.letter === 'S') clicks = 13; + else clicks = 7; await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_palm_network', [clicks, -1, 0]); await expect(tx).resolves.toEqual({ diff --git a/tests/zemu/src/eip1559.test.js b/tests/zemu/src/eip1559.test.js index 41d12d4ba7..99f42b144f 100644 --- a/tests/zemu/src/eip1559.test.js +++ b/tests/zemu/src/eip1559.test.js @@ -12,8 +12,8 @@ nano_models.forEach(function(model) { await waitForAppScreen(sim); let clicks; - if (model.letter === 'S') clicks = 7; - else clicks = 5; + if (model.letter === 'S') clicks = 10; + else clicks = 6; await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_eip1559', [clicks, -1, 0]); await expect(tx).resolves.toEqual({ diff --git a/tests/zemu/src/send.test.js b/tests/zemu/src/send.test.js index 1634974c23..411e96bc39 100644 --- a/tests/zemu/src/send.test.js +++ b/tests/zemu/src/send.test.js @@ -13,8 +13,8 @@ nano_models.forEach(function(model) { await waitForAppScreen(sim); let clicks; - if (model.letter === 'S') clicks = 9; - else clicks = 5; + if (model.letter === 'S') clicks = 12; + else clicks = 6; await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum', [clicks, -1, 0]); await expect(tx).resolves.toEqual({ diff --git a/tests/zemu/src/send_bsc.test.js b/tests/zemu/src/send_bsc.test.js index 5d9dabab20..6a56a8c47b 100644 --- a/tests/zemu/src/send_bsc.test.js +++ b/tests/zemu/src/send_bsc.test.js @@ -12,8 +12,8 @@ nano_models.forEach(function(model) { await waitForAppScreen(sim); let clicks; - if (model.letter === 'S') clicks = 10; - else clicks = 6; + if (model.letter === 'S') clicks = 13; + else clicks = 7; await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_bsc', [clicks, -1, 0]); await expect(tx).resolves.toEqual({ diff --git a/tests/zemu/src/send_etc.test.js b/tests/zemu/src/send_etc.test.js index 6b5e7d00c6..a6489312f3 100644 --- a/tests/zemu/src/send_etc.test.js +++ b/tests/zemu/src/send_etc.test.js @@ -12,8 +12,8 @@ nano_models.forEach(function(model) { await waitForAppScreen(sim); let clicks; - if (model.letter === 'S') clicks = 9; - else clicks = 5; + if (model.letter === 'S') clicks = 12; + else clicks = 6; await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum_clone', [clicks, -1, 0]); await expect(tx).resolves.toEqual({