Test: Fix E2ETests
This commit is contained in:
@@ -57,8 +57,8 @@ namespace Tests.E2ETests {
|
||||
Window.FindElement(By.WpfId("IbanInput")).SendKeys("AT611904300234573201");
|
||||
Window.FindElement(By.WpfId("BicInput")).SendKeys("RLNWATWWWDF");
|
||||
|
||||
Window.FindElement(By.WpfId("UstIdNrInput")).SendKeys("ATU66192906"); // TODO: Testdaten?
|
||||
Window.FindElement(By.WpfId("LfbisNrInput")).SendKeys("1251074"); // TODO: Testdaten?
|
||||
Window.FindElement(By.WpfId("UstIdNrInput")).SendKeys("ATU01234565");
|
||||
Window.FindElement(By.WpfId("LfbisNrInput")).SendKeys("0123455");
|
||||
|
||||
Window.FindElement(By.WpfId("BuchführendInput")).Click();
|
||||
Window.FindElement(By.WpfId("OrganicInput")).Click();
|
||||
@@ -68,7 +68,7 @@ namespace Tests.E2ETests {
|
||||
Window.FindElement(By.WpfId("BillingPlzInput")).SendKeys("2120");
|
||||
Window.FindElement(By.WpfId("BillingOrtInput")).SelectItem(2);
|
||||
|
||||
Window.FindElement(By.WpfId("BusinessSharesInput")).SendKeys("10");
|
||||
Window.FindElement(By.WpfId("BusinessShares1Input")).SendKeys("10");
|
||||
Window.FindElement(By.WpfId("BranchInput")).SelectItem("Matzen");
|
||||
Window.FindElement(By.WpfId("DefaultKgInput")).SelectItem(3);
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace Tests.E2ETests {
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, DependsOnTest("Test_1_CreateMember")]
|
||||
public void Test_2_EditMember() {
|
||||
Window!.FindElement(By.WpfId("SearchInput")).SendKeys("9999");
|
||||
Thread.Sleep(500);
|
||||
@@ -104,7 +104,7 @@ namespace Tests.E2ETests {
|
||||
|
||||
Window.FindElement(By.WpfId("EditMemberButton")).Click();
|
||||
|
||||
var businessSharesInput = Window.FindElement(By.WpfId("BusinessSharesInput"));
|
||||
var businessSharesInput = Window.FindElement(By.WpfId("BusinessShares1Input"));
|
||||
Assert.That(businessSharesInput, Is.Not.Null);
|
||||
|
||||
var businessShares = int.Parse(businessSharesInput.Text);
|
||||
@@ -117,7 +117,7 @@ namespace Tests.E2ETests {
|
||||
Assert.That(newBusinessShares, Is.EqualTo(businessShares + 5));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, DependsOnTest("Test_2_EditMember")]
|
||||
public void Test_3_DeleteMember() {
|
||||
Window!.FindElement(By.WpfId("SearchInput")).SendKeys("9999");
|
||||
Thread.Sleep(500);
|
||||
|
||||
Reference in New Issue
Block a user