1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 02:58:57 +00:00
Commit Graph

1324 Commits

Author SHA1 Message Date
matejcik
c6cda7b6f4 fixup! fixup! tests: fix small irregularities 2024-08-22 11:43:07 +02:00
matejcik
ea3fd5f789 fixup! chore: update fixtures 2024-08-22 11:43:07 +02:00
matejcik
0d089d76a6 fix(tests): stop waiting for background task after a timeout
Otherwise a test can hang if the result is not returned. This is not
even covered by pytest-timeout because if a test fails, the call to
task.kill() happens during teardown, and pytest-timeout doesn't cover
that.
2024-08-22 11:43:07 +02:00
matejcik
5dc8998a0b fix(tests): python >=3.11 compatibility for identifiers
Python 3.11 changed IntEnum.__str__ to return the number instead of the
enum value name. This breaks fixtures.json because pytest uses
str(value) to generate the test identifier names, and in a lot of places
our identifiers use the enum values.

This override of `_idval_from_value` explicitly generates a name from
the IntEnum instead of using the __str__ implementation.
2024-08-22 11:43:07 +02:00
matejcik
8a9a965a9f fixup! chore: update fixtures 2024-08-22 11:43:07 +02:00
matejcik
834f1b4473 chore(python): improve recovery type deprecation warning 2024-08-22 11:42:52 +02:00
matejcik
d1625ab4a8 fixup! tests: fix small irregularities 2024-08-22 11:42:52 +02:00
matejcik
a6e3f45b77 fixup! chore: update fixtures 2024-08-22 11:42:52 +02:00
matejcik
444aa19a1c fixup! tests: fix small irregularities 2024-08-22 11:42:34 +02:00
matejcik
d6d8a9050e chore: update fixtures 2024-08-22 11:42:34 +02:00
matejcik
66a74855f1 wip: default input flows 2024-08-22 11:41:42 +02:00
matejcik
680af2cf18 fix(tests): restore test functionality on legacy
The global layout related changes were wrong for T1 where debuglink
behavior is significantly different; in particular, it is not always
possible to communicate over debuglink.

This change reverts to the old behavior for T1B1 and keeps the new one
only for core-based models.
2024-08-22 11:39:36 +02:00
matejcik
12a59b88a5 feat(tests): sync received responses
to prevent "unexpected response to Initialize" errors
2024-08-22 11:39:36 +02:00
matejcik
4e6ba352ff style: fix complaining lints & formatters 2024-08-22 11:39:36 +02:00
matejcik
a0267004d5 feat(core/debug): better ButtonAck deadlock detection 2024-08-22 11:39:36 +02:00
matejcik
4e8fb737d8 fix(tests): do not set language in _raw_client
it gets wiped anyway
2024-08-22 11:39:36 +02:00
matejcik
3327de6d02 feat(python/debuglink): detect input flows that continue past end of test
should make input flows a tiny bit more robust still
2024-08-22 11:39:36 +02:00
matejcik
e19a58fb6e tests: fix small irregularities 2024-08-22 11:39:36 +02:00
matejcik
9cb9a2e15d tests: use read_layout everywhere 2024-08-22 11:38:54 +02:00
matejcik
73019d079d feat(core): unify RustLayout, implement single global layout 2024-08-22 11:38:53 +02:00
obrusvit
ca469784ba chore(core): update fixtures.json
Update as a part of T3T1 recovery share success screens and adding a new
test of aborting the recovery process between shares for all models.

[no changelog]
2024-07-31 11:36:32 +02:00
obrusvit
935afbb46f tests: UI test of cancel recovery between shares
[no changelog]
2024-07-31 11:36:32 +02:00
obrusvit
37edfcb974 tests: fix input_flow of recovery abort
[no changelog]
2024-07-31 11:36:32 +02:00
Ioan Bizău
4afaf4c41e Revert "fix(core/translations): remove unbreakable spaces for now"
This reverts commit cca066c476.

[no changelog]
2024-07-30 18:48:01 +03:00
Ioan Bizău
5188dfc83d feat(core): deal with non-breaking spaces
[no changelog]
2024-07-30 18:48:01 +03:00
Ioan Bizău
a35e9ba5fa chore(core/translations): use ASCII apostrophe in French
[no changelog]
2024-07-30 17:56:57 +03:00
Ioan Bizău
33f5d47330 chore(core): rename "hidden wallet" -> "passphrase wallet"
[no changelog]
2024-07-29 17:45:28 +03:00
obrusvit
cf69a3ca5d chore(core): update fixtures.json
[no changelog]
2024-07-22 12:09:16 +02:00
obrusvit
f846ec3c25 chore(core): update fixtures.json
Update after an update of tutorial copy and adding inverted exclamation
mark for spanish language.

[no changelog]
2024-07-19 15:05:36 +02:00
Ioan Bizău
522d33a71f refactor(core): send out ButtonRequest name
[no changelog]
2024-07-19 11:28:07 +03:00
Ioan Bizău
c7ec093863 feat(core): make "experimental features" storage field public to get rid of the cached field
[no changelog]
2024-07-19 11:24:50 +03:00
obrusvit
108d9c737e feat(core/mercury): add rounded overlay to keypads
Make the corner keys of passphrase and mnemonic keyboards rounded by an
overlay, similarly to PIN keyboard.

[no changelog]
2024-07-18 23:57:13 +02:00
tychovrahe
f2bdd6e189 fix(core/mercury): change status screen - display message in center after animation
Because some messages didn't fit the title
2024-07-17 20:23:19 +02:00
tychovrahe
2994317dcd fix(core/mercury): homescreen attach animation, resume animations after an interrupt from workflow 2024-07-16 23:12:32 +02:00
tychovrahe
ff869dd864 feat(core/mercury): pin entry animation
[no changelog]
2024-07-16 23:12:32 +02:00
Martin Milata
c857fcdc2f test(core): T3T1 ShowDeviceTutorial
[no changelog]
2024-07-11 12:59:43 +00:00
Andrew Kozlik
9420b38a35 feat(core): Account for Optiga throttling delay in PIN countdown. 2024-07-09 16:52:50 +02:00
obrusvit
16b89e587d chore(core): update fixtures.json
[no changelog]
2024-07-03 14:16:10 +02:00
gabrielkerekes
6f76ac3be6 fix(solana): allow AToken Create instruction to contain an optional rent_sysvar account
This is needed because some dApps (https://jup.ag/perps or http://solend.fi/) include the rent_sysvar account although it's not required anymore (it's also not a part of the [official docs](https://docs.rs/spl-associated-token-account/latest/spl_associated_token_account/instruction/enum.AssociatedTokenAccountInstruction.html#variant.Create)).
2024-07-01 09:46:40 +00:00
obrusvit
2de8acc141 chore(core): remove CoSi functionality
trezorctl CoSi feature is removed from all models
2024-07-01 09:32:38 +02:00
Pavol Rusnak
3602a8dde9 chore(legacy): remove CoSi functionality 2024-07-01 09:32:38 +02:00
obrusvit
2e10618876 chore(core): update fixtures
[no changelog]
2024-06-30 12:07:09 +02:00
matejcik
cd55d32407 refactor(python/protobuf): allow field types imported in the same module 2024-06-25 13:43:13 +02:00
matejcik
8a3133bacc fix(core): include valid staging certificate for T3T1 emulator 2024-06-25 13:35:16 +02:00
tychovrahe
9ab2ba9157 feat(core/mercury): animated device label on homescreen/lockscreen 2024-06-24 21:43:08 +02:00
tychovrahe
3a3259b574 feat(core/mercury): change homescreen flow 2024-06-24 21:43:08 +02:00
Andrew Kozlik
f396d00c67 fix(core): Fix style and unix build.
[no changelog]
2024-06-24 16:04:03 +02:00
obrusvit
0cc2ccd568 chore(core): update fixtures.json
[no changelog]
2024-06-19 16:02:24 +02:00
Martin Milata
191dc900a6 chore(core): update fixtures.json
[no changelog]
2024-06-11 14:30:33 +00:00
Marek Polak
ff659a82d1 chore(tests): remove params for unused checks
[no changelog]
2024-06-07 16:58:17 +02:00