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>
44 lines
No EOL
1.7 KiB
JavaScript
44 lines
No EOL
1.7 KiB
JavaScript
describe('Test plugins', () => {
|
|
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('/')
|
|
})
|
|
|
|
it('Associate an address with a service', () => {
|
|
// choose address
|
|
cy.selectWallet("Ghost wallet")
|
|
cy.get('main').contains('Addresses').click()
|
|
// Click on the first address
|
|
cy.contains('td', '#0').siblings().contains('bcrt').click()
|
|
cy.get('#associate-btn').click()
|
|
cy.contains("Service integration requires an authentication method that includes a password")
|
|
// OK, let's set a password
|
|
cy.get('select').select("passwordonly")
|
|
cy.get('#specter_password_only').type("mySecretPassword")
|
|
cy.get('#submit-btn').click()
|
|
cy.contains("Admin password successfully updated")
|
|
|
|
// Choose address again
|
|
cy.selectWallet("Ghost wallet")
|
|
cy.get('main').contains('Addresses').click()
|
|
cy.contains('td', '#0').siblings().contains('bcrt').click()
|
|
cy.get('#associate-btn').click()
|
|
cy.contains("Associating an address with a service will")
|
|
})
|
|
|
|
it('Deactivate password protection', () => {
|
|
// This flow only works if we don't keep the session alive! So, no Cypress.Cookies.preserveOnce('session') in beforeEach().
|
|
cy.get('#password').type("mySecretPassword")
|
|
cy.get('#login-btn').click()
|
|
cy.get('[href="/settings/"] > .svg-white').click()
|
|
cy.get('[href="/settings/auth"]').click()
|
|
cy.get('select').select("none")
|
|
cy.get('#submit-btn').click()
|
|
})
|
|
|
|
}) |