Code cleanup
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using NUnit.Framework;
|
||||
using AOW4.SeleniumTests.Pages;
|
||||
|
||||
namespace AOW4.SeleniumTests.Tests;
|
||||
|
||||
@@ -11,7 +10,9 @@ public class NavigationTests : BaseTest
|
||||
{
|
||||
GoHome();
|
||||
|
||||
Assert.IsTrue(Driver.Url.Contains(expectedPath, System.StringComparison.OrdinalIgnoreCase) || Driver.PageSource.Contains(linkText),
|
||||
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