Updated send BSC test
|
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 374 B |
|
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 337 B |
|
Before Width: | Height: | Size: 759 B After Width: | Height: | Size: 451 B |
|
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 320 B |
|
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 497 B |
|
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 504 B |
|
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 323 B |
|
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 377 B |
|
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 414 B |
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 414 B |
|
Before Width: | Height: | Size: 891 B After Width: | Height: | Size: 549 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 761 B |
|
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 674 B After Width: | Height: | Size: 472 B |
|
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 365 B |
@@ -1,37 +1,30 @@
|
||||
import "core-js/stable";
|
||||
import "regenerator-runtime/runtime";
|
||||
import { waitForAppScreen, zemu } from './test.fixture';
|
||||
import { waitForAppScreen, zemu, nano_models } from './test.fixture';
|
||||
|
||||
test('[Nano S] Transfer bsc', zemu("nanos", async (sim, eth) => {
|
||||
nano_models.forEach(function(model) {
|
||||
test('[Nano ' + model.letter + '] Transfer bsc', zemu(model, async (sim, eth) => {
|
||||
|
||||
const tx = eth.signTransaction(
|
||||
"44'/60'/1'/0/0",
|
||||
'EB0185012A05F200825208945A321744667052AFFA8386ED49E00EF223CBFFC3876F9C9E7BF6181880388080',
|
||||
);
|
||||
const tx = eth.signTransaction(
|
||||
"44'/60'/1'/0/0",
|
||||
'EB0185012A05F200825208945A321744667052AFFA8386ED49E00EF223CBFFC3876F9C9E7BF6181880388080',
|
||||
);
|
||||
|
||||
await waitForAppScreen(sim);
|
||||
await sim.navigateAndCompareSnapshots('.', 'nanos_transfer_bsc', [9, 0]);
|
||||
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_bsc', 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();
|
||||
|
||||
await expect(tx).resolves.toEqual({
|
||||
"r": "f667cc34e9815df4f052fb3463cdbe355fff5c1acf4e919b3539806521a059ad",
|
||||
"s": "6b35492b7108d9d9e1cc7aede536ed6b3173197b56dd873cbc3b43e041d6f407",
|
||||
"v": "93",
|
||||
});
|
||||
}));
|
||||
|
||||
test.skip('[Nano X] Transfer bsc', zemu("nanox", async (sim, eth) => {
|
||||
|
||||
const tx = eth.signTransaction(
|
||||
"44'/60'/1'/0/0",
|
||||
'EB0185012A05F200825208945A321744667052AFFA8386ED49E00EF223CBFFC3876F9C9E7BF6181880388080',
|
||||
);
|
||||
|
||||
await waitForAppScreen(sim);
|
||||
await sim.navigateAndCompareSnapshots('.', 'nanox_transfer_bsc', [5, 0]);
|
||||
|
||||
await expect(tx).resolves.toEqual({
|
||||
"r": "f667cc34e9815df4f052fb3463cdbe355fff5c1acf4e919b3539806521a059ad",
|
||||
"s": "6b35492b7108d9d9e1cc7aede536ed6b3173197b56dd873cbc3b43e041d6f407",
|
||||
"v": "93",
|
||||
});
|
||||
}));
|
||||
await expect(tx).resolves.toEqual({
|
||||
"r": "f667cc34e9815df4f052fb3463cdbe355fff5c1acf4e919b3539806521a059ad",
|
||||
"s": "6b35492b7108d9d9e1cc7aede536ed6b3173197b56dd873cbc3b43e041d6f407",
|
||||
"v": "93",
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||