Ejemplo n.º 1
0
 //Shows error message when the purchase amount is less than the specified limit for tax refund.
 public void LowPurchaseAmount()
 {
     GBPage.GoTo();
     GBPage.PurchaseCountry();
     GBPage.PurchaseAmount("50");
     GBPage.Calculate();
     Assert.IsTrue(GBPage.InvalidMessage() == "You will need to spend at least EUR75.01 to qualify for a tax refund.");
 }
Ejemplo n.º 2
0
 //Successful calculation of tax refund for single purchase.
 public void CheckRefundCalculation()
 {
     GBPage.GoTo();
     GBPage.PurchaseCountry();
     GBPage.PurchaseAmount("250");
     GBPage.Calculate();
     Assert.IsTrue(GBPage.RefundAmount() == "28.50", "Refund amount is not as expected");
     GBPage.AppendRefund();
     Assert.IsTrue(GBPage.TotalRefundAmount() == "28.50", "Total refund amount is not as expected");
 }