Skip to content

Commit

Permalink
Adapt Zemu Tests for new 'sender' field
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed Mar 13, 2024
1 parent 34e3486 commit 8680c5b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/zemu/src/blind_compound_deposit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
8 changes: 4 additions & 4 deletions tests/zemu/src/chainid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions tests/zemu/src/eip1559.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions tests/zemu/src/send.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions tests/zemu/src/send_bsc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions tests/zemu/src/send_etc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8680c5b

Please sign in to comment.