Commit graph

13 commits

Author SHA1 Message Date
yogendra sankhla
a3ce7d3186
Feature: Rescan button for empty wallet (#1779)
* Prompting rescan hint within tx-table when no transactions appear
* Animation of rescan part after being forwarded
* Basics option added in test-cypress for faster development on cypress tests on slower machines
* addWallet command added in Cypress
* Page limit in addresses view fixed

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-07-19 09:49:32 +02:00
k9ert
65a0c1865d
Bugfix: NoneType has not attribute get in certain circumstances (#1802)
* reasonable error-messages for cypress within cirrus

* bugfix: has no attribute get when creating a TX
2022-07-15 11:57:48 +02:00
k9ert
59e4e0b63b
Chore: Refactor_wallet_manager (#1667)
* remove unused params for update-method

* wallets_update_list shouldn't be an attribute

* param, docs and error_handling

* docs and propertize failed_wallets and error_management

* keep storing all wallets in wallet_manager

* adding first draft of a session-test

* updating cypress

* refine spec_mustiuser

* deactivate cypress-test

* changes in doc string of _update

* proper description

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
2022-06-20 12:44:58 +02:00
Manolis
307a5c0224
Feature: Message signing via QR code (#1567)
* Added tests/bitcoin to gitignore

* First draft.

* message signing button better integrated in address info, restriction to single sig wallets and (for now)  DIY devices, UI flow added to get signature from scanning DIY QR code back into Specter

* fixed regex in wallets_api to allow for electrum's shorter derivation path, fixed usb signing front end stuff, changed css in address-data.html to allow for long device names without breaking the font end.

* cypress test for qr code signing flow & renaming of spec_node_configured and use of ghost machine keys in this spec file.

* adjustments in cypress tests to account for new ghost wallet
2022-05-25 21:41:07 +02:00
relativisticelectron
0f53066726
Feature: Customised front end for adding Electrum devices (#1622)
* template attribute in the device class added
* new jinja file for Electrum device (new_device_keys_electrum.jinja)
* cypress test for electrum device

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-05-04 17:13:27 +02:00
Manolis
b6bd82a90c
UIUX: Overhaul of UTXO list, handling of locked UTXOs and scrollbar added to tx-table web component (#1580)
* Added tests/bitcoin to gitignore

* Ensure locked UTXO can't be used for transactions, fix rounding error in coin selection, fix styling/text in general settings.

* overhaul of checkbox logic in utxolist including mouseover event for checkboxes, manage psbt button action added, icon info popups added,design changes in utxo- and txlist to make the display quieter

* change of balance display, scrollbars for main and tx table, bugfixes (pagination, coin selection, unsigned labeling) & some styling finetuning

* deleted locked utxo balance calculations, added doc strings regarding balances

* jinja comment added in tx table, making scrollbar less vivid, tx table settings changed to no compact view toggle and scrollbar on by default

* more granular amount properties, little test fix.

* applying new amount properties to the frontend and other parts of the code & improving balance display design

* refactored a_simple_wallet to be only used in test_rest once

* tests for amounts and test performance optimisations.

* fix spec_node_configured

* fix spec_wallet_send.js

* fix spec_wallet_utxo.js

* keep action teaser div hidden on wallets overview.

* minor bug fix in tx-table, added includeShadowDom to cypress.json, adapted spec_wallet_utxo.js to new utxo list logic and added tests of new functionality to it.

* fix spec_plugins.js and switch back to includeShadowDom false
The problem with true is, that you are no longer able to spot
when you need to apply the workaround described in
https://docs.cypress.io/api/commands/shadow#Known-Issue
as you only need to apply in a shadow-DOM.
Feel free to switch it back in any test you see fit.
Cypress.config('includeShadowDom',true)

* better organisation of wallet utxo spec file

* some wait-tweaks to cypress tests to make them run smoother on cirrus, note: cypress tests green in local dev.

* longer wait in spec_elm_multi_segwit_wallet.js

* fixing spec_elm_multi_segwit_wallet.js

* more checks whether checkboxes get selected and additional waits for cirrus in spec_wallet_utxo.js.

Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-04-08 11:07:01 +02:00
Kim Neunert
b73e398c36
Feature: CLI and a publishing model for extensions (#1566)
* introduction of url-prefixes and defaults

* starting a cli for extensions

* more verbose

* extension-test-data

* logger improvements

* bugfixes and testing

* adding  clasification

* rename spext -> specterext

* distinguish isolated_client and refactoring

* improved error-message

* better error_management

* fix tests

* ext gen completion

* fix endpoint issue

* added .gitignore  and txs

* formatting

* very basic callback-infra

* beauty

* fix tests, tidy up, follow-links

* proper mocking for extgen

* adding a test for plugins

* fix tests + docs

* error-handling for non existing extensions

* extensiongen config and making config work for new style

* avoid pollition

* ups

* kick

* kick

* proper renaming of spext

* fix tests

* ToDo remark

* fix test finally

* fix the fixing fixing test

* documentation

* revert mounting for all config see #1595

* fix tests

* fix cypress-test

* prevent pollution

* revert address-data to fix test

* added ID

* bugfix for test-cypress
2022-02-25 16:38:41 +01:00
Kim Neunert
cb8968b5fb
Chore: Ci improvements (#103) (#1403)
* Ci improvements (#103)

* pin bitcoin to new v0.21.1 tag

* fix binary installation

* for binary install, pytest.ini is the file to use

* kick

* adjusted Dockerfile to have at least wget to download artifacts

* investigate test_hwibridge timing out

* restest with v0.20.1

* implements timeout, hope that was reason to hang

* remove livelogging again

* fix hanging test

* Enable bitcoind-log-output on demand

* Timeouts now raising SpecterErrors

* catch a bit more generic Exception

* increase timeout

* fix abandontx test

* simplified code

* increase timeout

* increased timeout also for pytest

* separate timeouts for liquid/bitcoin

* forget checkin

* increase timeout for bitcoin as well

* bugfix: node specific timeouts

* increase timeout for elm hotwallet

* Now timeouts for all occurences of broadcasting

* global vars done right

* Yet another ReadTimeoutError to take account for

* fix assertion

* fix not-defined issue

* proper status_code checking instead of error_code

* increase wait-time

* increase btc:mine wait to 15 s

Co-authored-by: Stepan Snigirev <snigirev.stepan@gmail.com>

* rollback to v0.20.1

* rollback - it is a src-install, stupid

* mixed up bitcoin and elements

* forgot to fix reference

* rollback test_abandon_purged_tx

* increase timeout to 30 s

* increase Liquid on cypress to 40s

Co-authored-by: Stepan Snigirev <snigirev.stepan@gmail.com>
2021-09-19 22:33:13 +02:00
Kim Neunert
ed5d2ab756
Chore: Automatic Testing and Documentation for Liquid (#1286)
* pin to newer version

* kick

* rename script and check prerequisites

* fail early and Dockerfile

* reduce threads again

* fix packages (not yet in DOCKERFILE)

* debug-log failed rpc-calls

* make funds available and fix address

* fix test

* fix test ... now explicitely ask to not confirm

* complete send test

* test single and multisig elem wallets

* testing also nested singlesig

* updates

* complete and fix multisig-tests

* fix tests

* ensure conn.json

* elements log in cirrus

* increase wait time for elements mining

* remove elm-log-stdout again

* start documenting

* increase timeout for last send

* log exception

* doc update

* small changes

* refactor Mining Testcode

* move images to dedicated folder

Co-authored-by: benk10 <ben.kaufman10@gmail.com>
2021-08-03 14:52:18 +02:00
Kim Neunert
2b9e02f2fa
Elements testing (#1212) 2021-06-16 15:33:35 +02:00
benk10
05115660e1
Refactor setup wizard (#1120)
* Refactor setup wizard

* Add cypress tests for setup of bitcoind and tor

* Remove old setup wizard UI

* Update spec_setup_wizard.js

* Update spec_setup_wizard.js

* Update .cirrus.yml

* Update .cirrus.yml

* Update .cirrus.yml

* Update .cirrus.yml

* fix libevent-2.1.so.7: cannot open shared object file

* hack in Dockerfile and screenshots/videos

* Update spec_setup_tor.js

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update setup.py

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update setup.py

* Delete data folder if existing

* Stage management and bug fixes

* Fix test

* Update spec_setup_wizard.js

Co-authored-by: k9ert <k9ert@gmx.de>
Co-authored-by: Kim Neunert <kneunert@gmail.com>
2021-04-23 23:08:58 +02:00
benk10
20ecbe24a0
Chore: Some more Cypress tests (#970)
* Cypress GitHub Action

* Update main.yml

* Update main.yml

* .

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* .

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update test-cypress.sh

* .

* .

* .

* Update main.yml

* Update main.yml

* Update test-cypress.sh

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* fix

* fix

* Update test-cypress.sh

* Update test-cypress.sh

* Update test-cypress.sh

* Update main.yml

* added debugging

* more logging

* more visibility

* even more visibility

* moar visibility

* moar visibility

* moar visibility

* Multisig test

* UTXO tab tests

* remove changes for gh actions

* Remove bitcoind changes

* Fix bug in coin selection from UTXO tab

Co-authored-by: Kim Neunert <k9ert@gmx.de>
2021-03-14 14:32:54 +01:00
Kim Neunert
d4646f1541
Feature: Cypress Frontend-testing (#712)
* adding cypress

* fix stagename

* sanitize before_script

* removing cypress examples

* test with background

* adding cypress stuff to .gitignore

* more cypress tests

* including bitcoind in tests

* bring the tests in order

* get tests to work

* naive try with docker

* docker executable no longer necessary

* install test_requirements

* fix ip-address

* uncomment not running tests

* fix broken ci

* fix ip-address

* reshuffle cypress tests, some docs

* ci-specific IP-address in test, we need to fix this

* fix dependency issue rimraf

* adding json-fie-creation in bitcoind and usage in cypress

* fix ci, forgot create-conn-json

* documentation

* echo Namespaces to fix tests not executed

* added testscript and moved to baseUrl

* Making the tests work and more robust

* improving tests and avoiding normal specter-folder

* reworking testscript, snapshots, decouple runs

* get ci back to work

* getting CI back to work

* get ci back to work

* get ci back to work

* get ci back to work

* get ci back to work

* get ci back to work

* get ci back to work

* tidy up

* fix uid-issue

* Update src/cryptoadvance/specter/templates/wallet/history/components/total_wallet_balances.jinja

Co-authored-by: benk10 <ben.kaufman10@gmail.com>

* Update src/cryptoadvance/specter/templates/wallet/wallets_overview.jinja

Co-authored-by: benk10 <ben.kaufman10@gmail.com>

* do tests again on cryptoadvance-project

* Fixed orphane btcd-process kill issue

* Update docs/cypress-testing.md

Co-authored-by: benk10 <ben.kaufman10@gmail.com>

* Update cypress/integration/spec_node_configured.js

Co-authored-by: benk10 <ben.kaufman10@gmail.com>

* improvements and bugfixes on the script

* script improvements and more proper process management

* consistency checks for running services and outdated snapshots

* fix build

* more logging

* kick

* debug on

* no longer reusing container

* test-cypredd: waiting on the container to come up

* pstree command not found (on gitlab)

* hopefully fix MacOS

* support MacOS for cypress

* use name instead of number for signal

* fix MacOS and a bit more docs

Co-authored-by: benk10 <ben.kaufman10@gmail.com>
2020-12-15 11:10:10 +01:00