mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Updates preferred price source copy label (#4492)
* ui+create: updates preferred price source copy label * Add test case Co-authored-by: d11n <mail@dennisreimann.de>
This commit is contained in:
parent
03d7dc8971
commit
eb6d01c21e
@ -176,7 +176,9 @@ namespace BTCPayServer.Tests
|
||||
var name = "Store" + RandomUtils.GetUInt64();
|
||||
TestLogs.LogInformation($"Created store {name}");
|
||||
Driver.WaitForElement(By.Id("Name")).SendKeys(name);
|
||||
new SelectElement(Driver.FindElement(By.Id("PreferredExchange"))).SelectByText("CoinGecko");
|
||||
var rateSource = new SelectElement(Driver.FindElement(By.Id("PreferredExchange")));
|
||||
Assert.Equal("Kraken (Recommended)", rateSource.SelectedOption.Text);
|
||||
rateSource.SelectByText("CoinGecko");
|
||||
Driver.WaitForElement(By.Id("Create")).Click();
|
||||
Driver.FindElement(By.Id("StoreNav-StoreSettings")).Click();
|
||||
Driver.FindElement(By.Id($"SectionNav-{StoreNavPages.General.ToString()}")).Click();
|
||||
|
@ -11,7 +11,7 @@
|
||||
const updateRecommended = currency => {
|
||||
const source = exchanges[currency] || 'coingecko'
|
||||
const name = source.charAt(0).toUpperCase() + source.slice(1)
|
||||
recommended.innerText = `Recommended (${name})`
|
||||
recommended.innerText = `${name} (Recommended)`
|
||||
}
|
||||
updateRecommended(@Safe.Json(Model.DefaultCurrency))
|
||||
delegate('change', '#DefaultCurrency', e => updateRecommended(e.target.value))
|
||||
|
Loading…
Reference in New Issue
Block a user