Selenium Chrome Tests

This commit is contained in:
britttttk 2019-05-12 02:13:26 -06:00 committed by Nicolas Dorier
parent 10496363f5
commit 698033b0cf
20 changed files with 329 additions and 79 deletions

View file

@ -11,6 +11,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="74.0.3729.6" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>

View file

@ -0,0 +1,243 @@
using System;
using Xunit;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using BTCPayServer.Tests.Logging;
using Xunit.Abstractions;
using OpenQA.Selenium.Interactions;
using System.Linq;
namespace BTCPayServer.Tests
{
public class Base
{
public IWebDriver Driver { get; set; }
public Base(ITestOutputHelper helper)
{
Logs.Tester = new XUnitLog(helper) { Name = "Tests" };
Logs.LogProvider = new XUnitLogProvider(helper);
}
protected void Wrap(Action<string> func)
{
using (var tester = ServerTester.Create())
{
tester.Start();
func.Invoke(tester.PayTester.ServerUri.ToString());
}
}
}
public class Browsers : Base
{
public Browsers(ITestOutputHelper helper) : base(helper)
{
ChromeOptions options = new ChromeOptions();
options.AddArguments("headless"); // Comment to view browser
options.AddArguments("window-size=1200x600"); // Comment to view browser
Driver = new ChromeDriver(Environment.CurrentDirectory, options);
}
public void RegisterNewUser(string random)
{
Driver.FindElement(By.Id("Register")).Click();
Driver.FindElement(By.Id("Email")).SendKeys(random + "@a.com");
Driver.FindElement(By.Id("Password")).SendKeys("123456");
Driver.FindElement(By.Id("ConfirmPassword")).SendKeys("123456");
Driver.FindElement(By.Id("RegisterButton")).Click();
return;
}
public void CreateNewStore(string random)
{
Driver.FindElement(By.Id("Stores")).Click();
Driver.FindElement(By.Id("CreateStore")).Click();
Driver.FindElement(By.Id("Name")).SendKeys("Store" + random);
Driver.FindElement(By.Id("Create")).Click();
return;
}
public void AddDerivationScheme()
{
Driver.FindElement(By.Id("ModifyBTC")).Click();
Driver.FindElement(By.Id("DerivationScheme")).SendKeys("xpub661MyMwAqRbcGABgHMUXDzPzH1tU7eZaAaJQXhDXsSxsqyQzQeU6kznNfSuAyqAK9UaWSaZaMFdNiY5BCF4zBPAzSnwfUAwUhwttuAKwfRX-[legacy]");
Driver.FindElement(By.Id("Continue")).Click();
Driver.FindElement(By.Id("Confirm")).Click();
Driver.FindElement(By.Id("Save")).Click();
return;
}
public void CreateInvoice(string random)
{
Driver.FindElement(By.Id("Invoices")).Click();
Driver.FindElement(By.Id("CreateNewInvoice")).Click();
Driver.FindElement(By.CssSelector("input#Amount.form-control")).SendKeys("100");
Driver.FindElement(By.Name("StoreId")).SendKeys("Deriv" + random + Keys.Enter);
Driver.FindElement(By.Id("Create")).Click();
return;
}
}
public class ChromeTests : Browsers
{
private string random = (new Random()).Next(1, 1000).ToString();
[Fact]
public void AccessRequiresLogin()
{
Wrap(s =>
{
Driver.Navigate().GoToUrl(s);
Assert.Contains("Login", Driver.PageSource);
Driver.Quit();
});
}
[Fact]
public void NewUserLogin()
{
Wrap(s =>
{
//Register & Log Out
Driver.Navigate().GoToUrl(s);
RegisterNewUser(random);
Driver.FindElement(By.Id("Logout")).Click();
//Same User Can Log Back In
Driver.FindElement(By.Id("Login")).Click();
Driver.FindElement(By.Id("Email")).SendKeys(random + "@a.com");
Driver.FindElement(By.Id("Password")).SendKeys("123456");
Driver.FindElement(By.Id("LoginButton")).Click();
//Change Password & Log Out
Driver.FindElement(By.Id("MySettings")).Click();
Driver.FindElement(By.Id("ChangePassword")).Click();
Driver.FindElement(By.Id("OldPassword")).SendKeys("123456");
Driver.FindElement(By.Id("NewPassword")).SendKeys("abc???");
Driver.FindElement(By.Id("ConfirmPassword")).SendKeys("abc???");
Driver.FindElement(By.Id("UpdatePassword")).Click();
Driver.FindElement(By.Id("Logout")).Click();
//Log In With New Password
Driver.FindElement(By.Id("Login")).Click();
Driver.FindElement(By.Id("Email")).SendKeys(random + "@a.com");
Driver.FindElement(By.Id("Password")).SendKeys("abc???");
Driver.FindElement(By.Id("LoginButton")).Click();
Assert.True(Driver.PageSource.Contains("Stores"), "Can't Access Stores");
Driver.Quit();
});
}
[Fact]
public void CanCreateStores()
{
Wrap(s =>
{
Driver.Navigate().GoToUrl(s);
RegisterNewUser(random);
CreateNewStore(random);
Assert.Contains("Store" + random, Driver.PageSource);
Driver.Quit();
});
}
[Fact]
public void CanCreateInvoice()
{
Wrap(s =>
{
Driver.Navigate().GoToUrl(s);
RegisterNewUser(random);
CreateNewStore(random);
AddDerivationScheme();
Driver.FindElement(By.Id("Invoices")).Click();
Driver.FindElement(By.Id("CreateNewInvoice")).Click();
Driver.FindElement(By.CssSelector("input#Amount.form-control")).SendKeys("100");
Driver.FindElement(By.Name("StoreId")).SendKeys("Deriv" + random + Keys.Enter);
Driver.FindElement(By.Id("Create")).Click();
Assert.True(Driver.PageSource.Contains("just created!"), "Unable to create Invoice");
Driver.Quit();
});
}
[Fact]
public void CanCreateAppPoS()
{
Wrap(s =>
{
Driver.Navigate().GoToUrl(s);
RegisterNewUser(random);
CreateNewStore(random);
Driver.FindElement(By.Id("Apps")).Click();
Driver.FindElement(By.Id("CreateNewApp")).Click();
Driver.FindElement(By.Name("Name")).SendKeys("PoS" + random);
Driver.FindElement(By.CssSelector("select#SelectedAppType.form-control")).SendKeys("PointOfSale" + Keys.Enter);
Driver.FindElement(By.CssSelector("select#SelectedStore.form-control")).SendKeys("Store" + random + Keys.Enter);
Driver.FindElement(By.Id("Create")).Click();
Driver.FindElement(By.CssSelector("input#EnableShoppingCart.form-check")).Click();
Driver.FindElement(By.Id("SaveSettings")).Click();
Assert.True(Driver.PageSource.Contains("App updated"), "Unable to create PoS");
Driver.Quit();
});
}
[Fact]
public void CanCreateAppCF()
{
Wrap(s =>
{
Driver.Navigate().GoToUrl(s);
RegisterNewUser(random);
CreateNewStore(random);
AddDerivationScheme();
Driver.FindElement(By.Id("Apps")).Click();
Driver.FindElement(By.Id("CreateNewApp")).Click();
Driver.FindElement(By.Name("Name")).SendKeys("CF" + random);
Driver.FindElement(By.CssSelector("select#SelectedAppType.form-control")).SendKeys("Crowdfund" + Keys.Enter);
Driver.FindElement(By.CssSelector("select#SelectedStore.form-control")).SendKeys("Store" + random + Keys.Enter);
Driver.FindElement(By.Id("Create")).Click();
Driver.FindElement(By.Id("Title")).SendKeys("Kukkstarter");
Driver.FindElement(By.CssSelector("div.note-editable.card-block")).SendKeys("1BTC = 1BTC");
Driver.FindElement(By.Id("TargetCurrency")).SendKeys("JPY");
Driver.FindElement(By.Id("TargetAmount")).SendKeys("700");
Driver.FindElement(By.Id("SaveSettings")).Submit();
Driver.FindElement(By.Id("ViewApp")).Click();
Driver.SwitchTo().Window(Driver.WindowHandles.Last());
Assert.True(Driver.PageSource.Contains("Currently Active!"), "Unable to create CF");
Driver.Quit();
});
}
[Fact]
public void CanCreatePayRequest()
{
Wrap(s =>
{
Driver.Navigate().GoToUrl(s);
RegisterNewUser(random);
CreateNewStore(random);
AddDerivationScheme();
Driver.FindElement(By.Id("PaymentRequests")).Click();
Driver.FindElement(By.Id("CreatePaymentRequest")).Click();
Driver.FindElement(By.Id("Title")).SendKeys("Pay123");
Driver.FindElement(By.Id("Amount")).SendKeys("700");
Driver.FindElement(By.Id("Currency")).SendKeys("BTC");
Driver.FindElement(By.Id("SaveButton")).Submit();
Driver.FindElement(By.Name("ViewAppButton")).SendKeys(Keys.Return);
Driver.SwitchTo().Window(Driver.WindowHandles.Last());
Assert.True(Driver.PageSource.Contains("Amount due"), "Unable to create Payment Request");
Driver.Quit();
});
}
public ChromeTests(ITestOutputHelper helper) : base(helper)
{
}
}
}

View file

@ -53,6 +53,7 @@ services:
- lightning-charged
- customer_lnd
- merchant_lnd
- selenium
devlnd:
image: btcpayserver/bitcoin:0.18.0
@ -285,6 +286,9 @@ services:
links:
- bitcoind
selenium:
image: selenium/standalone-chrome
volumes:
bitcoin_datadir:
customer_lightningd_datadir:

View file

@ -41,7 +41,7 @@
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Log in</button>
<button type="submit" class="btn btn-primary" id="LoginButton">Log in</button>
</div>
<div class="form-group">
<p>

View file

@ -35,7 +35,7 @@
<input asp-for="ConfirmPassword" class="form-control" />
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</div>
<button type="submit" class="btn btn-primary">Register</button>
<button type="submit" class="btn btn-primary" id="RegisterButton">Register</button>
</form>
</div>
</div>

View file

@ -28,7 +28,7 @@
<select asp-for="SelectedStore" asp-items="Model.Stores" class="form-control"></select>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input type="submit" value="Create" class="btn btn-primary" id="Create" />
</div>
</form>
<a asp-action="ListApps">Back to the app list</a>

View file

@ -23,7 +23,7 @@
<div class="row no-gutter" style="margin-bottom: 5px;">
<div class="col-lg-6">
<a asp-action="CreateApp" class="btn btn-primary" role="button"><span class="fa fa-plus"></span> Create a new app</a>
<a asp-action="CreateApp" class="btn btn-primary" role="button" id="CreateNewApp"><span class="fa fa-plus"></span> Create a new app</a>
<a href="https://docs.btcpayserver.org/features/apps" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
</div>
</div>

View file

@ -211,9 +211,9 @@
<input type="hidden" asp-for="NotificationEmailWarning" />
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Save Settings" />
<input type="submit" class="btn btn-primary" value="Save Settings" id="SaveSettings" />
<a class="btn btn-secondary" target="_blank" asp-action="ListInvoices" asp-controller="Invoice" asp-route-searchterm="@Model.SearchTerm">Invoices</a>
<a class="btn btn-secondary" target="_blank" asp-action="ViewCrowdfund" asp-controller="AppsPublic" asp-route-appId="@Model.AppId">View App</a>
<a class="btn btn-secondary" target="_blank" asp-action="ViewCrowdfund" asp-controller="AppsPublic" asp-route-appId="@Model.AppId" id="ViewApp">View App</a>
<a class="btn btn-secondary" target="_blank" asp-action="ListApps">Back to the app list</a>
</div>

View file

@ -6,19 +6,19 @@
<div class="modal" id="product-modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Product management</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="js-product-save btn btn-primary">Save Changes</button>
</div>
<div class="modal-header">
<h5 class="modal-title">Product management</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="js-product-save btn btn-primary">Save Changes</button>
</div>
</div>
</div>
</div>
@ -119,7 +119,7 @@
{
<partial name="NotificationEmailWarning"></partial>
}
<input type="email" asp-for="NotificationEmail" class="form-control"/>
<input type="email" asp-for="NotificationEmail" class="form-control" />
<span asp-validation-for="NotificationEmail" class="text-danger"></span>
</div>
<div class="form-group">
@ -127,9 +127,9 @@
<select asp-for="RedirectAutomatically" asp-items="Model.RedirectAutomaticallySelectList" class="form-control"></select>
<span asp-validation-for="RedirectAutomatically" class="text-danger"></span>
</div>
<input type="hidden" asp-for="NotificationEmailWarning"/>
<input type="hidden" asp-for="NotificationEmailWarning" />
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Save Settings" />
<input type="submit" class="btn btn-primary" value="Save Settings" id="SaveSettings" />
</div>
<div class="form-group">
<div class="accordion" id="accordian-dev-info">
@ -163,7 +163,7 @@
<h2 class="mb-0">
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#accordian-dev-info-embed-pos-iframe" aria-expanded="false" aria-controls="accordian-dev-info-embed-pos-iframe">
Embed POS with Iframe
</button>
</h2>
</div>
@ -171,17 +171,17 @@
<div class="card-body">
You can embed the POS using an iframe
@{
var iframe = $"<iframe src='{(Url.Action("ViewPointOfSale", "AppsPublic", new {appId = Model.Id}, Context.Request.Scheme))}' style='max-width: 100%; border: 0;'></iframe>";
var iframe = $"<iframe src='{(Url.Action("ViewPointOfSale", "AppsPublic", new { appId = Model.Id }, Context.Request.Scheme))}' style='max-width: 100%; border: 0;'></iframe>";
}
<pre><code class="html">@iframe</code></pre>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="accordian-dev-info-notification-header">
<h2 class="mb-0">
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#accordian-dev-info-notification" aria-expanded="false" aria-controls="accordian-dev-info-notification">
Notification Url Callbacks
Notification Url Callbacks
</button>
</h2>
</div>
@ -196,7 +196,8 @@
<li>Verify that the <code>orderId</code> is from your backend, that the <code>price</code> is correct and that <code>status</code> is either <code>confirmed</code> or <code>complete</code></li>
<li>You can then ship your order</li>
</ul>
</p> </div>
</p>
</div>
</div>
</div>
</div>
@ -204,8 +205,8 @@
</div>
</form>
<a asp-action="ListApps">Back to the app list</a>
</div>
</div>
</div>
@ -230,38 +231,38 @@
</script>
<script id="template-product-content" type="text/template">
<div class="mb-3">
<input class="js-product-id" type="hidden" name="id" value="{id}">
<input class="js-product-index" type="hidden" name="index" value="{index}">
<div class="form-row">
<div class="col-sm-6">
<label>Title</label>*
<input type="text" class="js-product-title form-control mb-2" value="{title}" autofocus />
<div class="mb-3">
<input class="js-product-id" type="hidden" name="id" value="{id}">
<input class="js-product-index" type="hidden" name="index" value="{index}">
<div class="form-row">
<div class="col-sm-6">
<label>Title</label>*
<input type="text" class="js-product-title form-control mb-2" value="{title}" autofocus />
</div>
<div class="col-sm-3">
<label>Price</label>*
<input type="number" class="js-product-price form-control mb-2" value="{price}" />
</div>
<div class="col-sm-3">
<label>Custom price</label>
<select class="js-product-custom form-control">
{custom}
</select>
</div>
</div>
<div class="col-sm-3">
<label>Price</label>*
<input type="number" class="js-product-price form-control mb-2" value="{price}" />
<div class="form-row">
<div class="col">
<label>Image</label>
<input type="text" class="js-product-image form-control mb-2" value="{image}" />
</div>
</div>
<div class="col-sm-3">
<label>Custom price</label>
<select class="js-product-custom form-control">
{custom}
</select>
<div class="form-row">
<div class="col">
<label>Description</label>
<textarea rows="3" cols="40" class="js-product-description form-control mb-2">{description}</textarea>
</div>
</div>
</div>
<div class="form-row">
<div class="col">
<label>Image</label>
<input type="text" class="js-product-image form-control mb-2" value="{image}" />
</div>
</div>
<div class="form-row">
<div class="col">
<label>Description</label>
<textarea rows="3" cols="40" class="js-product-description form-control mb-2">{description}</textarea>
</div>
</div>
</div>
</script>
<script src="~/products/js/products.js"></script>

View file

@ -73,7 +73,7 @@
<span asp-validation-for="SupportedTransactionCurrencies" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input type="submit" value="Create" class="btn btn-primary" id="Create" />
</div>
</form>
<a asp-action="ListInvoices">Back to List</a>

View file

@ -47,7 +47,7 @@
<div class="row no-gutter" style="margin-bottom: 5px;">
<div class="col-lg-6">
<a asp-action="CreateInvoice" class="btn btn-primary" role="button"><span class="fa fa-plus"></span> Create a new invoice</a>
<a asp-action="CreateInvoice" class="btn btn-primary" role="button" id="CreateNewInvoice"><span class="fa fa-plus"></span> Create a new invoice</a>
<a class="btn btn-primary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Export

View file

@ -24,7 +24,7 @@
<input asp-for="ConfirmPassword" class="form-control" />
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</div>
<button type="submit" class="btn btn-primary">Update password</button>
<button type="submit" class="btn btn-primary" id="UpdatePassword">Update password</button>
</form>
</div>
</div>

View file

@ -5,7 +5,7 @@
<div class="nav flex-column nav-pills">
<a class="nav-link @ViewData.IsActivePage(ManageNavPages.Index)" asp-action="Index">Profile</a>
<a class="nav-link @ViewData.IsActivePage(ManageNavPages.ChangePassword)" asp-action="ChangePassword">Password</a>
<a class="nav-link @ViewData.IsActivePage(ManageNavPages.ChangePassword)" asp-action="ChangePassword" id="ChangePassword">Password</a>
@if (hasExternalLogins)
{
<a class="nav-link @ViewData.IsActivePage(ManageNavPages.ExternalLogins)" asp-action="ExternalLogins">External logins</a>

View file

@ -100,10 +100,10 @@
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Save</button>
<button type="submit" class="btn btn-primary" id="SaveButton">Save</button>
@if (!string.IsNullOrEmpty(Model.Id))
{
<a class="btn btn-secondary" target="_blank" asp-action="ViewPaymentRequest" id="@Model.Id">View</a>
<a class="btn btn-secondary" target="_blank" asp-action="ViewPaymentRequest" id="@Model.Id" name="ViewAppButton">View</a>
<a class="btn btn-secondary"
target="_blank"
asp-action="ListInvoices"

View file

@ -22,7 +22,7 @@
<div class="row no-gutter" style="margin-bottom: 5px;">
<div class="col-lg-6">
<a asp-action="EditPaymentRequest" class="btn btn-primary" role="button"><span class="fa fa-plus"></span> Create a new payment request</a>
<a asp-action="EditPaymentRequest" class="btn btn-primary" role="button" id="CreatePaymentRequest"><span class="fa fa-plus"></span> Create a new payment request</a>
<a href="https://docs.btcpayserver.org/features/paymentrequests" target="_blank"><span class="fa fa-question-circle-o" title="More information..."></span></a>
</div>
</div>

View file

@ -74,24 +74,24 @@
{
<li class="nav-item"><a asp-area="" asp-controller="Server" asp-action="ListUsers" class="nav-link js-scroll-trigger">Server settings</a></li>
}
<li class="nav-item"><a asp-area="" asp-controller="UserStores" asp-action="ListStores" class="nav-link js-scroll-trigger">Stores</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Apps" asp-action="ListApps" class="nav-link js-scroll-trigger">Apps</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Wallets" asp-action="ListWallets" class="nav-link js-scroll-trigger">Wallets</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Invoice" asp-action="ListInvoices" class="nav-link js-scroll-trigger">Invoices</a></li>
<li class="nav-item"><a asp-area="" asp-controller="PaymentRequest" asp-action="GetPaymentRequests" class="nav-link js-scroll-trigger">Payment Requests</a></li>
<li class="nav-item"><a asp-area="" asp-controller="UserStores" asp-action="ListStores" class="nav-link js-scroll-trigger" id="Stores">Stores</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Apps" asp-action="ListApps" class="nav-link js-scroll-trigger" id="Apps">Apps</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Wallets" asp-action="ListWallets" class="nav-link js-scroll-trigger" id="Wallets">Wallets</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Invoice" asp-action="ListInvoices" class="nav-link js-scroll-trigger" id="Invoices">Invoices</a></li>
<li class="nav-item"><a asp-area="" asp-controller="PaymentRequest" asp-action="GetPaymentRequests" class="nav-link js-scroll-trigger" id="PaymentRequests">Payment Requests</a></li>
<li class="nav-item">
<a asp-area="" asp-controller="Manage" asp-action="Index" title="My settings" class="nav-link js-scroll-trigger"><i class="fa fa-user"></i></a>
<a asp-area="" asp-controller="Manage" asp-action="Index" title="My settings" class="nav-link js-scroll-trigger" id="MySettings"><i class="fa fa-user"></i></a>
</li>
<li class="nav-item">
<a asp-area="" asp-controller="Account" asp- asp-action="Logout" title="Logout" class="nav-link js-scroll-trigger"><i class="fa fa-sign-out"></i></a>
<a asp-area="" asp-controller="Account" asp- asp-action="Logout" title="Logout" class="nav-link js-scroll-trigger" id="Logout"><i class="fa fa-sign-out"></i></a>
</li>}
else if (env.IsSecure)
{
if (themeManager.ShowRegister)
{
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Register" class="nav-link js-scroll-trigger">Register</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Register" class="nav-link js-scroll-trigger" id="Register">Register</a></li>
}
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Login" class="nav-link js-scroll-trigger">Log in</a></li>
<li class="nav-item"><a asp-area="" asp-controller="Account" asp-action="Login" class="nav-link js-scroll-trigger" id="Login">Log in</a></li>
}
</ul>

View file

@ -130,7 +130,7 @@
<label asp-for="Enabled"></label>
<input asp-for="Enabled" type="checkbox" class="form-check" />
</div>
<button name="command" type="submit" class="btn btn-primary" value="save">Continue</button>
<button name="command" type="submit" class="btn btn-primary" value="save" id="Continue">Continue</button>
}
else
{
@ -175,7 +175,7 @@
<input asp-for="HintAddress" class="form-control" />
<span asp-validation-for="HintAddress" class="text-danger"></span>
</div>
<button name="command" type="submit" class="btn btn-primary" value="save">Confirm</button>
<button name="command" type="submit" class="btn btn-primary" value="save" id="Confirm">Confirm</button>
}
</form>
</div>

View file

@ -121,7 +121,7 @@
{
<a asp-action="WalletTransactions" asp-controller="Wallets" asp-route-walletId="@scheme.WalletId">Wallet</a><span> - </span>
}
<a asp-action="AddDerivationScheme" asp-route-cryptoCode="@scheme.Crypto">Modify</a>
<a asp-action="AddDerivationScheme" asp-route-cryptoCode="@scheme.Crypto" id="ModifyBTC">Modify</a>
</td>
</tr>
}
@ -247,7 +247,7 @@
</div>
</div>
}
<button name="command" type="submit" class="btn btn-primary" value="Save">Save</button>
<button name="command" type="submit" class="btn btn-primary" value="Save" id="Save">Save</button>
</form>
</div>
</div>

View file

@ -20,7 +20,7 @@
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input type="submit" value="Create" class="btn btn-primary" id="Create" />
</div>
</form>
<a asp-action="ListStores">Back to List</a>

View file

@ -21,7 +21,7 @@
</div>
<div class="row">
<a asp-action="CreateStore" class="btn btn-primary" role="button"><span class="fa fa-plus"></span> Create a new store</a>
<a asp-action="CreateStore" class="btn btn-primary" role="button" id="CreateStore"><span class="fa fa-plus"></span> Create a new store</a>
<table class="table table-sm table-responsive-md">
<thead>
<tr>