mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Add test IDs for Lightning and Plugins (#3402)
I came across these when writing a Selenium test for LNbank.
This commit is contained in:
parent
4125726be9
commit
0f5d932726
3 changed files with 10 additions and 9 deletions
|
@ -20,7 +20,6 @@
|
|||
availableAndNotInstalled.Add(ordered.FirstOrDefault(availablePlugin => DependenciesMet(availablePlugin.Dependencies)) ?? ordered.FirstOrDefault());
|
||||
}
|
||||
|
||||
|
||||
bool DependentOn(string plugin)
|
||||
{
|
||||
foreach (var installedPlugin in Model.Installed)
|
||||
|
@ -140,7 +139,7 @@
|
|||
var updateAvailable = !plugin.SystemPlugin && matchedAvailable.Any();
|
||||
var tabId = plugin.Identifier.ToLowerInvariant().Replace(".", "_");
|
||||
<div class="col col-12 col-md-6 col-lg-12 col-xl-6 col-xxl-4 mb-4">
|
||||
<div class="card h-100">
|
||||
<div class="card h-100" id="@plugin.Identifier">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title d-inline-block" title="@plugin.Identifier" data-bs-toggle="tooltip">@plugin.Name</h4>
|
||||
<div class="d-flex flex-wrap align-items-center mb-2">
|
||||
|
@ -260,7 +259,7 @@
|
|||
var disabled = Model.Disabled?.Contains(plugin.Identifier) ?? false;
|
||||
|
||||
<div class="col col-12 col-md-6 col-lg-12 col-xl-6 col-xxl-4 mb-4">
|
||||
<div class="card h-100">
|
||||
<div class="card h-100" id="@plugin.Identifier">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title d-inline-block" data-bs-toggle="tooltip" title="@plugin.Identifier">@plugin.Name</h4>
|
||||
<h5 class="text-muted d-flex align-items-center mt-1">
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
<div class="mb-5">
|
||||
<h3 class="mb-3">@ViewData["Title"]</h3>
|
||||
<div class="mb-3">
|
||||
<span class="me-3">@Model.LightningNodeType Node</span>
|
||||
<span class="me-3" id="NodeType">@Model.LightningNodeType Node</span>
|
||||
|
||||
@if (Model.LightningNodeType != LightningNodeType.Internal)
|
||||
{
|
||||
<span class="me-3">
|
||||
<span class="me-3" id="CustomNodeInfo">
|
||||
@if (LightningConnectionString.TryParse(Model.ConnectionString, out var cs))
|
||||
{
|
||||
@typeof(LightningConnectionType).DisplayName(cs.ConnectionType.ToString())
|
||||
|
@ -32,7 +32,8 @@
|
|||
asp-action="ShowLightningNodeInfo"
|
||||
asp-route-cryptoCode="@Model.CryptoCode"
|
||||
asp-route-storeId="@Model.StoreId"
|
||||
target="_blank">
|
||||
target="_blank"
|
||||
id="PublicNodeInfo">
|
||||
Public Node Info
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
<div class="mb-5">
|
||||
<h3 class="mb-3">@ViewData["Title"]</h3>
|
||||
<div class="text-break mb-3">
|
||||
<span class="me-3">@Model.LightningNodeType Node</span>
|
||||
<span class="me-3" id="NodeType">@Model.LightningNodeType Node</span>
|
||||
@if (Model.LightningNodeType != LightningNodeType.Internal)
|
||||
{
|
||||
<span class="me-3">
|
||||
<span class="me-3" id="CustomNodeInfo">
|
||||
@if (LightningConnectionString.TryParse(Model.ConnectionString, out var cs))
|
||||
{
|
||||
@typeof(LightningConnectionType).DisplayName(cs.ConnectionType.ToString())
|
||||
|
@ -32,7 +32,8 @@
|
|||
asp-action="ShowLightningNodeInfo"
|
||||
asp-route-cryptoCode="@Model.CryptoCode"
|
||||
asp-route-storeId="@Model.StoreId"
|
||||
target="_blank">
|
||||
target="_blank"
|
||||
id="PublicNodeInfo">
|
||||
Public Node Info
|
||||
</a>
|
||||
<a asp-controller="UIStores" asp-action="SetupLightningNode" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" id="SetupLightningNodeLink">
|
||||
|
|
Loading…
Add table
Reference in a new issue