mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
test: Fix selenium tests.
This commit is contained in:
@@ -6137,7 +6137,7 @@ class BasicSwap(BaseApp):
|
||||
|
||||
if 'chart_api_key' in data:
|
||||
new_value = data['chart_api_key']
|
||||
ensure(isinstance(new_value, bool), 'New chart_api_key value not a string')
|
||||
ensure(isinstance(new_value, str), 'New chart_api_key value not a string')
|
||||
ensure(len(new_value) <= 128, 'New chart_api_key value too long')
|
||||
if all(c in string.hexdigits for c in new_value):
|
||||
if settings_copy.get('chart_api_key', '') != new_value:
|
||||
@@ -6196,7 +6196,10 @@ class BasicSwap(BaseApp):
|
||||
remotedaemonurls.add(url.strip())
|
||||
|
||||
if set(settings_cc.get('remote_daemon_urls', [])) != remotedaemonurls:
|
||||
settings_cc['remote_daemon_urls'] = list(remotedaemonurls)
|
||||
if len(remotedaemonurls) == 0 and 'remote_daemon_urls' in settings_cc:
|
||||
del settings_cc['remote_daemon_urls']
|
||||
else:
|
||||
settings_cc['remote_daemon_urls'] = list(remotedaemonurls)
|
||||
settings_changed = True
|
||||
suggest_reboot = True
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</svg>
|
||||
</div>
|
||||
<div class="flex-1 p-1">
|
||||
<h3 class="font-medium text-sm text-green-900">{{ m[1] }}</h3></div>
|
||||
<h3 class="infomsg font-medium text-sm text-green-900">{{ m[1] }}</h3></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-auto p-2">
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-auto p-2">
|
||||
<button type="button" class="ml-auto bg-red-100 text-red-500 rounded-lg focus:ring-0 focus:ring-red-400 p-1.5 hover:bg-red-200 inline-flex h-8 w-8 focus:outline-none" data-dismiss-target="#err_messages_{{ err_messages[0][0] }}" aria-label="Close">
|
||||
<button type="button" class="ml-auto bg-red-100 text-red-500 rounded-lg focus:ring-0 focus:ring-red-400 p-1.5 hover:bg-red-200 inline-flex h-8 w-8 focus:outline-none" data-dismiss-target="#err_messages_{{ err_messages[0][0] }}" aria-label="Close">
|
||||
<span class="sr-only">Close</span>
|
||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
|
||||
@@ -57,4 +57,4 @@
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
<!-- todo messages colors better for darkmode -->
|
||||
<!-- todo messages colors better for darkmode -->
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<div class="text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700">
|
||||
<ul class="flex flex-wrap -mb-px" id="myTab" data-tabs-toggle="#settingstab" role="tablist">
|
||||
<li class="mr-2" role="presentation">
|
||||
<a class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300" id="profile-tab" data-tabs-target="#coins" role="tab" aria-controls="coins" aria-selected={% if active_tab == 'default' %}"true"{% else %}"false"{% endif %}>Coins</a>
|
||||
<a class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300" id="coins-tab" data-tabs-target="#coins" role="tab" aria-controls="coins" aria-selected={% if active_tab == 'default' %}"true"{% else %}"false"{% endif %}>Coins</a>
|
||||
</li>
|
||||
<li class="mr-2" role="presentation">
|
||||
<a class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300" id="general-tab" data-tabs-target="#general" role="tab" aria-controls="general" aria-selected={% if active_tab == 'general' %}"true"{% else %}"false"{% endif %}>General</a>
|
||||
|
||||
Reference in New Issue
Block a user