Zbiór zmian 960 dla trunk/eCard/eCardMVC/Platnosci.Tests/Web/UI/MerchantTests.cs
- Data:
- 2009-12-22 10:43:43 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci.Tests/Web/UI
- Pliki:
-
- 1 dodane
- 1 przeniesione
-
. (dodane)
-
MerchantTests.cs (przeniesione) (przeniesione from trunk/eCard/eCardMVC/Platnosci.Tests/Web/UIPlatnosciTests.cs) (4 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci.Tests/Web/UI/MerchantTests.cs
r958 r960 2 2 using WatiN.Core; 3 3 4 namespace Platnosci.Tests.Web 4 namespace Platnosci.Tests.Web.UI 5 5 { 6 6 [TestFixture] 7 public class UIPlatnosciTests7 public class MerchantTests 8 8 { 9 9 [Test] 10 10 [Category("UI")] 11 public void CheckCorrectPay()11 public void Redirects_To_Ecard_When_All_Details_Are_Correct() 12 12 { 13 13 const string test = "test"; … … 21 21 ie.Button(Find.ById("place")).Click(); 22 22 Assert.IsTrue(ie.ContainsText("Imię i nazwisko:" + test + " " + test)); 23 Assert.IsTrue(ie.Url.Contains("https://pay.ecard.pl/")); 23 24 ie.ForceClose(); 24 25 ie.Close(); … … 28 29 [Test] 29 30 [Category("UI")] 30 public void CheckErrorPay()31 public void Returns_ZlyHash_When_Invoice_Amount_Is_Zero() 31 32 { 32 const string test = "test"; 33 var ie = new IE("http://localhost:3646/pl/Account/LogOn"); 34 ie.TextField(Find.ByName("numerFaktury")).TypeText("27/ASZ/2009"); 35 ie.TextField(Find.ByName("nip")).TypeText("854956281"); 36 ie.Button(Find.ById("loguj")).Click(); 33 // wartosc faktury 1/SLJ/2009 jest 0 (zero) 34 // wowczas eCard powinien zwrocic zlyHash - stala informujaca, ze cos jest nie tak... 37 35 38 ie.TextField(Find.ByName("Payer.FirstName")).TypeText(test);39 ie.TextField(Find.ByName("Payer.LastName")).TypeText("");40 ie.Button(Find.ById("place")).Click();41 Assert.IsTrue(ie.ContainsText("Proszę podać"));42 ie.ForceClose();43 ie.Close();44 ie.Dispose();45 }46 [Test]47 [Category("UI")]48 public void AmountIsZeroReturnZlyHash()49 {50 36 const string test = "test"; 51 37 var ie = new IE("http://localhost:3646/pl/Account/LogOn"); … … 61 47 ie.Close(); 62 48 ie.Dispose(); 63 64 49 } 65 50 }
