mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
* 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
41 lines
No EOL
1.6 KiB
JavaScript
41 lines
No EOL
1.6 KiB
JavaScript
describe('plugins are working', () => {
|
|
|
|
it('can create the associate button', () => {
|
|
cy.viewport(1200,660)
|
|
cy.visit('/')
|
|
|
|
// choose address
|
|
cy.get('#test_hot_wallet_1-sidebar-list-item').click()
|
|
cy.get('[href="/wallets/wallet/test_hot_wallet_1/addresses/"]').click()
|
|
cy.get('addresses-table').shadow().find('address-row').eq(0).shadow().find('.explorer-link').click()
|
|
cy.get('address-data').shadow().find('#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.get('#test_hot_wallet_1-sidebar-list-item').click()
|
|
cy.get('[href="/wallets/wallet/test_hot_wallet_1/addresses/"]').click()
|
|
cy.get('addresses-table').shadow().find('address-row').eq(0).shadow().find('.explorer-link').click()
|
|
cy.get('address-data').shadow().find('#associate-btn').click()
|
|
cy.contains("Associating an address with a service will")
|
|
|
|
|
|
})
|
|
|
|
it('deactivates the password protection again', () => {
|
|
cy.viewport(1200,660)
|
|
cy.visit('/')
|
|
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()
|
|
})
|
|
|
|
}) |