This commit is contained in:
Marcos Rodriguez Velez 2024-12-29 15:25:51 -04:00
parent 7fd8097e42
commit 6a8b794963
2 changed files with 4 additions and 0 deletions

View file

@ -220,6 +220,7 @@ const ElectrumSettings: React.FC = () => {
setHost('');
setPort(undefined);
setSslPort(undefined);
presentAlert({ message: loc.settings.electrum_saved });
},
},
]);
@ -262,6 +263,7 @@ const ElectrumSettings: React.FC = () => {
presentResetToDefaultsAlert().then(async result => {
if (result) {
await BlueElectrum.removePreferredServer();
presentAlert({ message: loc.settings.electrum_saved });
fetchData();
}
});

View file

@ -96,6 +96,8 @@ describe('BlueWallet UI Tests - no wallets', () => {
await element(by.text('electrum.blockstream.info')).tap();
await sup('OK');
await element(by.text('OK')).tap();
await sup('OK');
await element(by.text('OK')).tap();
await element(by.id('ElectrumSettingsScrollView')).swipe('up', 'fast', 1); // in case emu screen is small and it doesnt fit
await expect(element(by.id('HostInput'))).toHaveText('');
await expect(element(by.id('PortInput'))).toHaveText('');