mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
* 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>
38 lines
No EOL
1.5 KiB
JavaScript
38 lines
No EOL
1.5 KiB
JavaScript
describe('Test adding different devices', () => {
|
|
before(() => {
|
|
Cypress.config('includeShadowDom', true)
|
|
})
|
|
|
|
// Keeps the session cookie alive, Cypress by default clears all cookies before each test
|
|
beforeEach(() => {
|
|
cy.viewport(1200,660)
|
|
cy.visit('/')
|
|
Cypress.Cookies.preserveOnce('session')
|
|
})
|
|
|
|
it('Filter devices', () => {
|
|
cy.get('#toggle_devices_list').click()
|
|
cy.get('#btn_new_device').click()
|
|
cy.contains('Select Your Device Type')
|
|
cy.get('#device-type-searchbar').type("Specter")
|
|
cy.get('#trezor_device_card').should('not.be.visible')
|
|
cy.get('#specter_device_card').should('be.visible')
|
|
cy.get('#specter_device_card').click()
|
|
cy.contains('Connect your Specter-DIY')
|
|
})
|
|
|
|
it('Electrum device', () => {
|
|
cy.get('#toggle_devices_list').click()
|
|
cy.get('#btn_new_device').click()
|
|
cy.get('#electrum_device_card').click()
|
|
cy.get('#device_name').type("Electron's Electrum Device")
|
|
// Open and close the explainer
|
|
cy.get('#toggle-explainer').find('#drop-icon').click()
|
|
cy.get('#toggle-explainer').find('#drop-icon').click()
|
|
cy.get('#master_pub_key').type("vpub5VGXXixD2pHLFtcKtCF57e8mx2JW6fie8VydXijC8sRKAL4RshgjEmzbmV915NeVB9pd23DVYem6zWM7HXFLNwaffNVHowdD9SJWwESyQhp")
|
|
cy.get('.small-card > .btn').click()
|
|
cy.contains('New device was added successfully!')
|
|
cy.get('#page_overlay_popup_cancel_button').click()
|
|
cy.get('#forget_device').click()
|
|
})
|
|
}) |