Добавить поддержку SHiNE в кошелёк

This commit is contained in:
AidarKC
2026-11-13 18:52:26 +03:00
parent 2a72842a7a
commit 42a05a7a67
8 changed files with 71 additions and 14 deletions
+4 -3
View File
@@ -19,10 +19,11 @@ test('profile views attach counters from server cache and support user action',
assert.match(other, /openShineSupportDialog\(\{ recipientLogin: card\.login/);
});
test('wallet supports direct SHiNE economy donation', () => {
test('wallet offers SHiNE economy donation through the menu, not the Solana wallet', () => {
const wallet = file('../js/pages/wallet-view.js');
assert.match(wallet, /id="donate-shine"/);
assert.match(wallet, /openShineSupportDialog\(\{ onSuccess/);
const menu = wallet.split('function renderWalletChoice()')[1].split('async function renderShineBlockchainWallet()')[0];
assert.match(menu, /openShineSupportDialog\(\)/);
assert.doesNotMatch(wallet, /id="donate-shine"/);
});
test('message buttons pass checked block hashes, not message text', () => {