Fix compound tests
|
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 366 B |
|
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 374 B |
|
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 700 B After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 633 B |
|
Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 667 B |
|
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 615 B |
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 758 B |
|
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 305 B |
BIN
tests/zemu/snapshots/nanox_enable_blind_signing/00009.png
Normal file
|
After Width: | Height: | Size: 382 B |
@@ -4,8 +4,12 @@ import { waitForAppScreen, zemu, nano_models } from './test.fixture';
|
||||
|
||||
nano_models.forEach(function(model) {
|
||||
test('[Nano ' + model.letter + '] Deposit ETH on compound, blind sign', zemu(model, async (sim, eth) => {
|
||||
let clicks;
|
||||
// LNS does not have an EIP712 setting
|
||||
if (model.letter === 'S') clicks = 3;
|
||||
else clicks = 4;
|
||||
// Enable blind-signing
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_enable_blind_signing', [-2, 0, 0, 3, 0]);
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_enable_blind_signing', [-2, 0, 0, clicks, 0]);
|
||||
|
||||
const tx = eth.signTransaction(
|
||||
"44'/60'/1'/0/0",
|
||||
@@ -13,7 +17,6 @@ nano_models.forEach(function(model) {
|
||||
);
|
||||
|
||||
await waitForAppScreen(sim);
|
||||
let clicks;
|
||||
if (model.letter === 'S') clicks = 8;
|
||||
else clicks = 6;
|
||||
await sim.navigateAndCompareSnapshots('.', model.name + '_deposit_eth_compound_blind', [clicks, -1, 0]);
|
||||
|
||||