test(BrokenLinks) Now checking for broken links on a few pages
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
namespace TestAutomation;
|
||||
|
||||
[TestFixture]
|
||||
public class TestLinks : BaseTest
|
||||
{
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
TestReport.CreateTest();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
TestReport.ThrowErrors();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void VerifyPageLinks()
|
||||
{
|
||||
Website.HarassCalculatorPage.Goto();
|
||||
TestReport.VerifyLinks(Website.HarassCalculatorPage).Wait();
|
||||
|
||||
Website.DatabasePage.Goto();
|
||||
TestReport.VerifyLinks(Website.DatabasePage).Wait();
|
||||
|
||||
Website.DatabaseSinglePage.Goto("throne");
|
||||
TestReport.VerifyLinks(Website.DatabaseSinglePage).Wait();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user