CP-14573: UI: Improvements on Upgrade VM UI

Changed unit tests

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2015-10-19 13:47:00 +01:00
parent a73a91c1a7
commit 4c321b0b6f
2 changed files with 36 additions and 4 deletions

View File

@ -69,6 +69,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", false, false ),
new ExpectedTextMenuItem("Dis&connect", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -181,7 +183,9 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", true, false ),
new ExpectedTextMenuItem("Di&saster Recovery", false, false ),
@ -294,7 +298,9 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", true, false ),
new ExpectedTextMenuItem("Di&saster Recovery", false, false ),
@ -406,6 +412,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -521,7 +529,9 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", true, false ),
new ExpectedTextMenuItem("Di&saster Recovery", false, false ),
@ -637,6 +647,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", true, false ),
@ -754,6 +766,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", false, false ),
new ExpectedTextMenuItem("Dis&connect", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", false, false ),
@ -873,6 +887,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", false, false ),
new ExpectedTextMenuItem("Dis&connect", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -995,6 +1011,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", false, false ),
new ExpectedTextMenuItem("Dis&connect", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", false, false ),
@ -1116,6 +1134,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", false, false ),
new ExpectedTextMenuItem("Dis&connect", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -1240,6 +1260,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Reconnec&t As...", false, false ),
new ExpectedTextMenuItem("Dis&connect", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&High Availability...", false, false ),
@ -1357,6 +1379,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -1468,6 +1492,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -1581,6 +1607,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -1722,6 +1750,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),
@ -1849,6 +1879,8 @@ namespace XenAdminTests.TabsAndMenus
new ExpectedTextMenuItem("Re&move Server", false, false ),
new ExpectedTextMenuItem("Reconnec&t As...", true, false ),
new ExpectedTextMenuItem("Dis&connect", true, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("&Upgrade VMs...", false, false ),
new ExpectedSeparator(),
new ExpectedTextMenuItem("Manage &vApps...", false, false ),
new ExpectedSeparator(),

View File

@ -181,7 +181,7 @@ namespace XenAdminTests.TabsAndMenus
Assert.AreEqual("view_ShellTest1", GetVisibleToolStripItems(MainWindowWrapper.ViewMenu.DropDownItems)[5].Text);
MainWindowWrapper.PoolMenu.ShowDropDown();
Assert.AreEqual("pool_ShellTest1", GetVisibleToolStripItems(MainWindowWrapper.PoolMenu.DropDownItems)[20].Text);
Assert.AreEqual("pool_ShellTest1", GetVisibleToolStripItems(MainWindowWrapper.PoolMenu.DropDownItems)[22].Text);
MainWindowWrapper.HostMenu.ShowDropDown();
Assert.AreEqual("server_ShellTest1", GetVisibleToolStripItems(MainWindowWrapper.HostMenu.DropDownItems)[20].Text);