Tech stack stub page and changing project to be just one Web Assembly project for now
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace AOW4.SeleniumTests.Tests;
|
||||
|
||||
[TestFixture]
|
||||
public class NavigationTests : BaseTest
|
||||
{
|
||||
[TestCase("Building Plan Calculator", "/building-calculator")]
|
||||
public void ClickNavLink_NavigatesToPage(string linkText, string expectedPath)
|
||||
{
|
||||
GoHome();
|
||||
|
||||
Assert.IsTrue(
|
||||
Driver.Url.Contains(expectedPath, StringComparison.OrdinalIgnoreCase) ||
|
||||
Driver.PageSource.Contains(linkText),
|
||||
$"Expected to be on route containing '{expectedPath}' after clicking '{linkText}', but was '{Driver.Url}'");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user