public void RecentTransactionsAmountSorting() { var homePage = new LoginPage(But).Login("jgomez", "password"); //Sort Table of Transactions by Amount homePage.SortRecentTransactionsByAmount(); //Check the Table after Sorting Eyes.CheckElement(HomePage.TransactionTable, "jgomez homepage transactions sorted by amount"); }
public void NoUserNameOrPassError() { //Verify the Login Page var loginPage = new LoginPage(But); //Login without a user or password Assert.Throws <WebDriverTimeoutException>(() => loginPage.Login("", ""), "Homepage does not load after unsuccessful login"); //Was previously only able to confirm the raw text of the Message, but with Eyes I can now validate the look and feel Eyes.CheckElement(LoginPage.AlertMessage, "No Username or Password Error"); }
public void TransactionsChartTest() { var homePage = new LoginPage(But).Login("jgomez", "password"); //Open Expenses Chart Page var chartPage = homePage.ClickCompareExpenses(); //Visually compare the Expense Chart, this is great solution to validating canvas's when you control the test data Eyes.CheckElement(ChartPage.chartCanvas, "Default Expense Chart"); //Add more data to the chart chartPage.AddAnotherYearOfData(); //Visually compare the Expense Chart, this is great solution to validating canvas's when you control the test data Eyes.CheckElement(ChartPage.chartCanvas, "Expense Chart with 2019 Data"); }