| | 9 | [Test] |
| | 10 | [Category("UI")] |
| | 11 | public void CheckCorrectPay() |
| | 12 | { |
| | 13 | const string test = "test"; |
| | 14 | var ie = new IE("http://localhost:3646/pl/Account/LogOn"); |
| | 15 | ie.TextField(Find.ByName("numerFaktury")).TypeText("27/ASZ/2009"); |
| | 16 | ie.TextField(Find.ByName("nip")).TypeText("854956281"); |
| | 17 | ie.Button(Find.ById("loguj")).Click(); |
| | 18 | |
| | 19 | ie.TextField(Find.ByName("Payer.FirstName")).TypeText(test); |
| | 20 | ie.TextField(Find.ByName("Payer.LastName")).TypeText(test); |
| | 21 | ie.Button(Find.ById("place")).Click(); |
| | 22 | Assert.IsTrue(ie.ContainsText("Imię i nazwisko:" + test + " " + test)); |
| | 23 | ie.ForceClose(); |
| | 24 | ie.Close(); |
| | 25 | ie.Dispose(); |
| | 26 | } |
| | 27 | |
| 24 | | } |
| 25 | | [Test] |
| 26 | | [Category("UI")] |
| 27 | | public void CheckCorrectPay() |
| 28 | | { |
| 29 | | const string test = "test"; |
| 30 | | var ie = new IE("http://localhost:3646/pl/Account/LogOn"); |
| 31 | | ie.TextField(Find.ByName("numerFaktury")).TypeText("27/ASZ/2009"); |
| 32 | | ie.TextField(Find.ByName("nip")).TypeText("854956281"); |
| 33 | | ie.Button(Find.ById("loguj")).Click(); |
| 34 | | |
| 35 | | ie.TextField(Find.ByName("Payer.FirstName")).TypeText(test); |
| 36 | | ie.TextField(Find.ByName("Payer.LastName")).TypeText(test); |
| 37 | | ie.Button(Find.ById("place")).Click(); |
| 38 | | Assert.IsTrue(ie.ContainsText("Imię i nazwisko:" + test + " " + test)); |
| 39 | | ie.ForceClose(); |
| | 43 | ie.Close(); |
| | 44 | ie.Dispose(); |