Example #1
0
        public void PressEnterSavesResourceAndClosesSaveDialog()
        {
            const string resourceFolder = "EnterSavesResourceFolder";

            DialogsUIMap.RightClick_Save_Dialog_Localhost();
            DialogsUIMap.Select_NewFolder_From_SaveDialogContextMenu();
            DialogsUIMap.Name_New_Folder_From_Save_Dialog(resourceFolder);
            Assert.IsTrue(DialogsUIMap.SaveDialogWindow.Exists);
            DialogsUIMap.Enter_Valid_Service_Name_Into_Save_Dialog("EnterSavesResource");
            WorkflowTabUIMap.Enter_Using_Shortcut();
            DialogsUIMap.SaveDialogWindow.WaitForControlCondition(control => !control.TryGetClickablePoint(out Point point), 60000);
            Assert.IsFalse(DialogsUIMap.SaveDialogWindow.Exists);
        }
Example #2
0
        public void ClickingSave_ThenPressEnter_SavesResource_AndClosesSaveDialog()
        {
            WorkflowTabUIMap.Escape_Using_Shortcut();
            Mouse.Click(UIMap.MainStudioWindow.SideMenuBar.SaveButton);

            const string resourceFolder = "ClickSaveEnterSavesResourceFolder";

            DialogsUIMap.RightClick_Save_Dialog_Localhost();
            DialogsUIMap.Select_NewFolder_From_SaveDialogContextMenu();
            DialogsUIMap.Name_New_Folder_From_Save_Dialog(resourceFolder);
            Assert.IsTrue(DialogsUIMap.SaveDialogWindow.Exists);
            DialogsUIMap.Enter_Valid_Service_Name_Into_Save_Dialog("ClickSaveEnterSavesResource");
            WorkflowTabUIMap.Enter_Using_Shortcut();
            DialogsUIMap.SaveDialogWindow.WaitForControlCondition(control => !control.TryGetClickablePoint(out Point point), 60000);
            Assert.IsFalse(DialogsUIMap.SaveDialogWindow.Exists);
        }