mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
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:
parent
a73a91c1a7
commit
4c321b0b6f
@ -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(),
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user