Updated send test
Removed hacky workaround
This commit is contained in:
1
tests/snapshots/nanos_transfer_ethereum/00010.png
Symbolic link
1
tests/snapshots/nanos_transfer_ethereum/00010.png
Symbolic link
@@ -0,0 +1 @@
|
||||
00008.png
|
||||
BIN
tests/snapshots/nanos_transfer_ethereum/00011.png
Normal file
BIN
tests/snapshots/nanos_transfer_ethereum/00011.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 349 B |
1
tests/snapshots/nanos_transfer_ethereum_5234_network/00011.png
Symbolic link
1
tests/snapshots/nanos_transfer_ethereum_5234_network/00011.png
Symbolic link
@@ -0,0 +1 @@
|
||||
00009.png
|
||||
BIN
tests/snapshots/nanos_transfer_ethereum_5234_network/00012.png
Normal file
BIN
tests/snapshots/nanos_transfer_ethereum_5234_network/00012.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 349 B |
1
tests/snapshots/nanox_transfer_ethereum/00006.png
Symbolic link
1
tests/snapshots/nanox_transfer_ethereum/00006.png
Symbolic link
@@ -0,0 +1 @@
|
||||
00004.png
|
||||
BIN
tests/snapshots/nanox_transfer_ethereum/00007.png
Normal file
BIN
tests/snapshots/nanox_transfer_ethereum/00007.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 382 B |
1
tests/snapshots/nanox_transfer_ethereum_5234_network/00007.png
Symbolic link
1
tests/snapshots/nanox_transfer_ethereum_5234_network/00007.png
Symbolic link
@@ -0,0 +1 @@
|
||||
00005.png
|
||||
BIN
tests/snapshots/nanox_transfer_ethereum_5234_network/00008.png
Normal file
BIN
tests/snapshots/nanox_transfer_ethereum_5234_network/00008.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 382 B |
@@ -13,14 +13,9 @@ nano_models.forEach(function(model) {
|
||||
|
||||
await waitForAppScreen(sim);
|
||||
let clicks;
|
||||
if (model.letter === 'S') clicks = [9];
|
||||
else clicks = [5];
|
||||
// Go to the reject screen
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum', clicks);
|
||||
// Accepting the transaction somehow takes too long for Zemu and takes the same screenshot
|
||||
// twice, so accept it manually
|
||||
await sim.clickLeft();
|
||||
await sim.clickBoth();
|
||||
if (model.letter === 'S') clicks = 9;
|
||||
else clicks = 5;
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum', [clicks, -1, 0]);
|
||||
|
||||
await expect(tx).resolves.toEqual({
|
||||
"r": "6f389d15320f0501383526ed03de917c14212716f09a262dbc98431086a5db49",
|
||||
@@ -52,14 +47,9 @@ nano_models.forEach(function(model) {
|
||||
|
||||
await waitForAppScreen(sim);
|
||||
let clicks;
|
||||
if (model.letter === 'S') clicks = [10];
|
||||
else clicks = [6];
|
||||
// Go to the reject screen
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum_5234_network', clicks);
|
||||
// Accepting the transaction somehow takes too long for Zemu and takes the same screenshot
|
||||
// twice, so accept it manually
|
||||
await sim.clickLeft();
|
||||
await sim.clickBoth();
|
||||
if (model.letter === 'S') clicks = 10;
|
||||
else clicks = 6;
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_transfer_ethereum_5234_network', [clicks, -1, 0]);
|
||||
|
||||
await expect(tx).resolves.toEqual({
|
||||
"r": "07a7982dfd16360c96a03467877d0cf9c36f799deff4dace250cdb18e28a3b90",
|
||||
|
||||
Reference in New Issue
Block a user