mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Enforce focus on the radio button so when Enter is hit the wizard proceeds.
Otherwise, the focus may randomly go on the link opening the NewSR wizard; once the latter is open the test times out. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
e32e67cd02
commit
46faf191c5
@ -62,7 +62,12 @@ namespace XenAdminTests.WizardTests.state1_xml
|
|||||||
{
|
{
|
||||||
if (pageName == "Installation Media")
|
if (pageName == "Installation Media")
|
||||||
{
|
{
|
||||||
MW(() => (TestUtils.GetRadioButton(wizard, "page_3_InstallationMedia.UrlRadioButton")).Checked = true);
|
MW(() =>
|
||||||
|
{
|
||||||
|
var button = TestUtils.GetRadioButton(wizard, "page_3_InstallationMedia.UrlRadioButton");
|
||||||
|
button.Checked = true;
|
||||||
|
button.Focus();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pageName == "Storage")
|
if (pageName == "Storage")
|
||||||
|
Loading…
Reference in New Issue
Block a user