Commit Graph

23 Commits

Author SHA1 Message Date
Tomas Susanka
021d3c7a13 feat(docker): add 'set -e' to shell scripts and modify shebang 2021-01-05 21:03:56 +01:00
mroz22
55e967de7f tests(e2e): visual testing 2021-01-05 14:20:15 +01:00
martin
af3dc0e34c e2e: use bridge proxy (#3220) 2021-01-05 10:43:09 +01:00
mroz22
6791ad76f7 cypress6.1.0 2020-12-09 12:26:28 +01:00
martin
5172056165 chore: upgrade cypress to 5.0.0 (#3144) 2020-12-09 11:50:10 +01:00
Ondrej Sika
879220c398 ci: run e2e tests in containers 2020-12-02 14:25:51 +01:00
Tomas Susanka
84550f4b5e Introduce linter for YAML files (#2927) 2020-11-10 08:50:03 +01:00
martin
57609e18ed Feat/metadata2 (#2137)
* add oauth receiver file (web, electron)

* add dropbox dependency

* add metadata: actions, middleware, reducer, utils, types

* add metadata services

* add metadata modals

* add metadata storage

* add metadata to TrezorDevice and Account

* add metadata to discovery process

* metadata locally in electron (UserDataProvider)

* Update trezorConnectActions.ts

* use Account metdata in Menu

* tmp: add metadata from tx item

* add DropboxProvider for suite-native

* reset Device.metadata (createInstance, forgetDevice) + update

* labeling button in TransactionItem (remove Container)

* labeling button in Receive

* labeling button in Account Item (Menu)

* labeling button in TransactionItem

* labelling button in SwitchDevice

* update Labeling components

* update MetadataAdd modal

* add missing metadataActions

* fix openMetadataPopup in TransactionItem

* update connect@8.1.8-beta

* update connect files

* implement new fields from connect

* merge develop test

* [wip] metadata: google provider (#2086)

* fix: import fix

* feat: metadata google drive

* native stubs

* test: more tests

* feat: [wip] second path

* feat: settings switch

* feat: metadata progress

* feat: metadata progress

* test: test

* test: pressYes, pressNo, backup fix

* feat: i dont know

* test: does it work now

* test: e2e three basic scenarios

* test: add unit

* feat: bunch of new things

* test: new case

* feat: store metadata locally and sync later

* test: more powerful mocks

* feat: setInterval fetchMetadata and test

* test: split metadata tests by one

* fix: switching providers

* feat: desktop - oauth window closable

* feat: oauth windows in electron

* feat: inline input [wip]

* chore: reimplement stuff after merge

* test: improve

* chore: remova metadata input modal

* feat: nice init/edit/submit

* test: add address labeling e2e test

* feat: tweaking inline input

* feat: better inline input

* feat: remove continue without saving option

* chore: cleanup console.logs

* test: add wallet labeling and output labeling e2e test

* feat: oauth file

* feat: cancel editing if provider not successful

* feat: local oauth files for both providers

* chore: cleanup

* fix: dont save if nothing changed, wait for discovery to finish, and more..

* fix: fix with-passphrase metadata test

* chore: move client ids to constants

* chore: put _error back

* feat: validate oauth state

* test: fix random Id not to be so random in tests

* chore: cleanup

* chore: delete slipped in file

* chore: put back file from develop

* chore: revert unwanted iframe changes

* chore: correct iframe.js

* chore: fix broken git macOS

* chore: split metadata components for better code readability

* feat: add editing field to reducer instead of local state

* fix: add migration to db, filter data to be saved

* fix: get rid of local state in metadata input

it caused troubles in wallets modal

* chore: clean code

* chore: migrations and code cleanup

* fix: dispose device metadata and code cleanup

* chore: texts in error  toasts

* chore: remove isLoading from data providers

* chore: use useDiscovery hook

* chore: remove useEffect from metadata button

* chore: move caret magic to DOM  utils

* chore: remove legacy labeling

* chore: better name for metadata component (MetadataLabeling)

* chore: minor fixes to tests

* absolutePosition for dropdown component, ability to append to arbitrary html element via react portals

* labelling UI improvements

* fix: z-index of dropdown to be over modal

* chore: remove logs

Co-authored-by: Szymon Lesisz <sz.lesisz@gmail.com>
Co-authored-by: slowbackspace <slowbackspace@gmail.com>
2020-08-26 11:36:01 +02:00
martin
393270d1e0 Firmware 2.3.2 (#2051)
* ci: add firmware 2.3.2 and trezorlib from master

* test: rename 2.3.0 to 2.3.1

* test(e2e): remove unused command from docker-compose
2020-06-26 11:42:40 +02:00
martin
da8f61c74d test(e2e): fix permissions of in tests generated files (#2026) 2020-06-15 13:06:04 +02:00
martin
ae4c23e533 no udev rules and bridge on mobile (#1951)
* no udev rules and bridge on mobile

* cleanup vol 2

* cleanup vol 3

* one last fix

* lint fix

* lint fix...
2020-06-08 14:05:03 +02:00
martin
35aa55eac0 debug failing tests (#1777)
* tests experiments

* yml invalid?

* yml

* now it should pass with working retries

* try again

* experiment stable/beta

* tracksuite-url

* joburl

* lets do some logging

* commit-branch

* trigger ci

* trigger ci

* log stage

* trigger ci

* fix stage

* argv

* log

* stage

* extended test file name

* log jobID

* CI_JOB_ID

* less logs

* 1st cleanup

* redeploy

* build landing

* remove code dependency

* few runs

* fix test

* backup runs in beta and stable

* split t2 and t1 tests

* backup is only beta

* split dry_run

* @foo

* split backup

* test names

* use default command timeout

* remove leaked files

* particural timeouts

* retry dry-run-t1 2

* more comments

* readme

* commitMessage

* graph loading timeout

* try retry with recover wallet t1

* @retry instead of @retries

* run all

* readme

* chrome-beta

* fix yml

* unused arv

* check chrome beta

* test update

* test update 2

* no npx cypress install

* comment

* should error on error

* npx cypress

* hm

* hmm

* hmmmm

* hmmmm

* hm

* all

* all

* xempty dependencies

* hm

* move firmware test to beta

* beta no fail

* comment

* all
2020-06-04 09:58:40 +02:00
martin
9feec4d699 pin related button requests (#1743)
* recovery tests and fixes

* remove comment

* skip failing test

* all jobs

* fix gitlab.yml

* fix unit

* skip test...
2020-05-11 18:01:23 +02:00
martin
2e82968938 recovery related (#1715)
* recovery

* reconnect component and translations

* some refactoring to recovery

* path to profile file

* unskip test

* remove console

* gitignore newline
2020-05-07 10:23:32 +02:00
martin
0f8e3ef2f4 improve integration tests (#1609)
* add bridge 29 to tests

* trezord on 0.0.0.0:21325

* fix all 0.0.0.0

* remove bridge27, add wait_for_bridge_device fn

* wip

* wip

* limit jobs

* fix and uncomment 2 backup tests

* uncomment and fix 1 firmware test

* more stable setupEmu without bridge running

* more tuning

* new image

* first matchImageSnapshot!

* build and deploy

* wip

* wip

* try snapshot in CI

* new snapshots

* few runs..

* fix test

* fix test

* trigger ci 1

* trigger ci 2

* trigger ci 3

* trigger ci 4

* trigger ci 5

* remove skip

* readme and so

* cleanup

* invalid device states tests

* build and deploy

* cleanup

* run all

argh

* handle permissions of generated images
2020-05-04 17:41:38 +02:00
Szymon Lesisz
3a3afc8a92 Fix/passphrase input (#1540)
* fix typos

* fix ref type in Input component

* fix #895

* disable passphrase suggestion, fix #1244

* Delete index.tsx
2020-04-15 10:13:05 +02:00
martin
d694aa0322 Docker (#1413)
* wip

* working docker setup: bridge, emu t1, devserver

* working dev_server with trezor-env

* setup for lsuite and bridge and emu in docker

* wip [skip ci]

* [skip ci] wip, working suite-dev docker-compose recipe

* wip working tests in docker [skip ci]

* wip extend works with version 2

* split and extend (sounds like divide and conquer doesnt it) for suite-dev

* cleanup and better texts

* clean up 2

* try CI

* try CI 2

* relative path (from file) to emu and bridge

* resolve permission collisions

* cleanup3

* cleanup4

* cleanup5

* cleanup6

* rename trezor-env to trezor-user-env

* rm yarn.lock that sneaked in somehow

* cleanup7
2020-04-08 13:13:33 +02:00
Vladimir Volek
7f42da4fe5 move docker to ci folder 2019-09-04 15:22:59 +02:00
Vladimir Volek
65acd2e579 install cypress binary manually, rename base docker image 2019-08-08 13:38:03 +02:00
Marek Mahut
8acfb59cb8 ci: changing the registry url address 2019-08-05 16:42:58 +02:00
Vladimir Volek
c7469b7173 Update README.md 2019-07-30 14:23:18 +02:00
Vladimir Volek
7c8c358bd5 add readme 2019-07-29 17:32:04 +02:00
Vladimir Volek
aa322edafd try to run with custom image 2019-07-29 17:24:54 +02:00