mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #717 from stephen-turner/CP-14647
Remove two more failing tests that test dead code
This commit is contained in:
commit
1589f53ac6
@ -169,80 +169,6 @@ namespace XenAdminTests.WizardTests.state1_xml.NewSRWizardTests
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestFixture, Category(TestCategories.UICategoryB)]
|
|
||||||
public class NewSRWizardTest_CSLG_NetApp : WizardTest<NewSRWizard>
|
|
||||||
{
|
|
||||||
public NewSRWizardTest_CSLG_NetApp()
|
|
||||||
: base(new string[] { "Type", "Name", "Storage System", "NetApp Filer Details", "Settings" }, true, false)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
protected override NewSRWizard NewWizard()
|
|
||||||
{
|
|
||||||
return new NewSRWizard(GetAnyConnection());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void TestPage(string pageName)
|
|
||||||
{
|
|
||||||
if (pageName == "Type")
|
|
||||||
{
|
|
||||||
MW(TestUtils.GetRadioButton(wizard, "xenTabPageChooseSrType.radioButtonCslg").Select);
|
|
||||||
}
|
|
||||||
else if (pageName == "Name")
|
|
||||||
{
|
|
||||||
Assert.IsInstanceOf(typeof(NewSrWizardNamePage), TestUtils.GetXenTabPage(wizard, "xenTabPageSrName"), "Wrong page");
|
|
||||||
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageSrName.textBoxName")).Text = "foo");
|
|
||||||
}
|
|
||||||
else if (pageName == "Storage System")
|
|
||||||
{
|
|
||||||
Assert.IsInstanceOf(typeof(CSLG), TestUtils.GetXenTabPage(wizard, "xenTabPageCslg"), "Wrong page");
|
|
||||||
MW(() => TestUtils.GetComboBox(wizard, "xenTabPageCslg.comboBoxStorageSystem").SelectedItem = "NetApp");
|
|
||||||
}
|
|
||||||
else if (pageName == "NetApp Filer Details")
|
|
||||||
{
|
|
||||||
Assert.IsInstanceOf(typeof(FilerDetails), TestUtils.GetXenTabPage(wizard, "xenTabPageFilerDetails"), "Wrong page");
|
|
||||||
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappHostAddress")).Text = "foo");
|
|
||||||
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappUsername")).Text = "foo");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestFixture, Category(TestCategories.UICategoryB)]
|
|
||||||
public class NewSRWizardTest_CSLG_EqualLogic : WizardTest<NewSRWizard>
|
|
||||||
{
|
|
||||||
public NewSRWizardTest_CSLG_EqualLogic()
|
|
||||||
: base(new string[] { "Type", "Name", "Storage System", "EqualLogic Filer Details", "Settings" }, true, false)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
protected override NewSRWizard NewWizard()
|
|
||||||
{
|
|
||||||
return new NewSRWizard(GetAnyConnection());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void TestPage(string pageName)
|
|
||||||
{
|
|
||||||
if (pageName == "Type")
|
|
||||||
{
|
|
||||||
MW(TestUtils.GetRadioButton(wizard, "xenTabPageChooseSrType.radioButtonCslg").Select);
|
|
||||||
}
|
|
||||||
else if (pageName == "Name")
|
|
||||||
{
|
|
||||||
Assert.IsInstanceOf(typeof(NewSrWizardNamePage), TestUtils.GetXenTabPage(wizard, "xenTabPageSrName"), "Wrong page");
|
|
||||||
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageSrName.textBoxName")).Text = "foo");
|
|
||||||
}
|
|
||||||
else if (pageName == "Storage System")
|
|
||||||
{
|
|
||||||
Assert.IsInstanceOf(typeof(CSLG), TestUtils.GetXenTabPage(wizard, "xenTabPageCslg"), "Wrong page");
|
|
||||||
MW(() => TestUtils.GetComboBox(wizard, "xenTabPageCslg.comboBoxStorageSystem").SelectedItem = "Dell EqualLogic");
|
|
||||||
}
|
|
||||||
else if (pageName == "EqualLogic Filer Details")
|
|
||||||
{
|
|
||||||
Assert.IsInstanceOf(typeof(FilerDetails), TestUtils.GetXenTabPage(wizard, "xenTabPageFilerDetails"), "Wrong page");
|
|
||||||
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappHostAddress")).Text = "foo");
|
|
||||||
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappUsername")).Text = "foo");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestFixture, Category(TestCategories.UICategoryB), Category(TestCategories.SmokeTest)]
|
[TestFixture, Category(TestCategories.UICategoryB), Category(TestCategories.SmokeTest)]
|
||||||
public class NewSRWizardTest_CIFS : WizardTest<NewSRWizard>
|
public class NewSRWizardTest_CIFS : WizardTest<NewSRWizard>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user