Click around in selenium, and do not forget to run the selenium tests on circleCI

This commit is contained in:
nicolas.dorier
2019-05-13 17:59:15 +09:00
parent 27fd49e61c
commit cd6dd78759
4 changed files with 93 additions and 28 deletions

View File

@@ -3,12 +3,17 @@ using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using OpenQA.Selenium;
using Xunit;
namespace BTCPayServer.Tests
{
public static class Extensions
{
public static void AssertNoError(this IWebDriver driver)
{
Assert.NotNull(driver.FindElement(By.ClassName("navbar-brand")));
}
public static T AssertViewModel<T>(this IActionResult result)
{
Assert.NotNull(result);