mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
* fix:(wallet) style export wallet popup * fix:(quorum) fix selection highlight on selected devices for musig quorum * fix:(sign) fix spacing between signing option buttons * fix:(send) fix send screen unsigned transaction details * fix:(pr) fix pr comment issues * fix:(rescan) blockchain rescan breaks sidebar * fix:(device) tooltip position in device selection * fix:(usb) style usb device selector * feat:(export) export to device styled * fix:(scrollbars) fix colors of scrollbars * fix:(tx) improve broadcast tx screen * fix cypress tests * fix:(export) fix export for musig qr and add styles for preferences --------- Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com> Co-authored-by: k9ert <k9ert@gmx.de> Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
42 lines
1.8 KiB
JavaScript
42 lines
1.8 KiB
JavaScript
describe('Ghost machine', () => {
|
|
it('Create a DIY device with ghost machine keys and a wallet', () => {
|
|
cy.addDevice('DIY ghost', 'Specter-DIY', 'ghost_machine')
|
|
// addWallet assumes that we have a connection, so let's check for that and establish one if we don't have one
|
|
cy.get('body')
|
|
.then($body => {
|
|
if ($body.find('[data-cy="no-core-connection"]').length) {
|
|
cy.connect()
|
|
cy.addWallet('Ghost wallet', 'segwit', 'funded', true, 'btc', 'singlesig', 'DIY ghost')
|
|
}
|
|
else {
|
|
cy.addWallet('Ghost wallet', 'segwit', 'funded', true, 'btc', 'singlesig', 'DIY ghost')
|
|
}
|
|
})
|
|
})
|
|
|
|
it('Check wallet settings', () => {
|
|
// Wallet info
|
|
cy.selectWallet('Ghost wallet')
|
|
cy.get('#btn_settings').click()
|
|
cy.contains("DIY ghost")
|
|
// Advanced
|
|
cy.get('#btn_settings').click()
|
|
cy.get('#advanced_settings_tab_btn').click()
|
|
cy.contains("Import address labels")
|
|
// Export options
|
|
cy.get('#export_settings_tab_btn').click()
|
|
// Specter JSON
|
|
cy.get('#export_specter_format').click()
|
|
cy.readFile(`./cypress/downloads/Ghost wallet.json`)
|
|
// Backup PDF
|
|
cy.get('#pdf-wallet-download').click()
|
|
cy.readFile(`./cypress/downloads/ghost_wallet_backup.pdf`)
|
|
// Uncle Jim PDF
|
|
cy.get('#pdf-paperxpub-download').click()
|
|
cy.readFile(`./cypress/downloads/ghost_wallet_uj_backup.pdf`)
|
|
// Export to Electrum
|
|
cy.get('[data-cy="show-export-details-overlay-btn"]').click()
|
|
cy.get('#electrum_export').click()
|
|
cy.readFile(`./cypress/downloads/ghost_wallet_electrum.backup`)
|
|
})
|
|
})
|