Beispiel #1
0
        public void DecisionTool_LargeViewResize_UITest()
        {
            //Large View
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.LargeView.Table.Exists, "Table does not exist on decision large view after dragging tool in from the toolbox.");
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.LargeView.RequireAllDecisionsToBeTrueCheckbox.Exists, "Require All Decisions To Be True Checkbox does not exist on decision large view after dragging tool in from the toolbox.");
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.LargeView.DisplayTextbox.Exists, "Display Textbox does not exist on decision large view after dragging tool in from the toolbox.");
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.LargeView.TrueArmTextbox.Exists, "True Arm Textbox does not exist on decision large view after dragging tool in from the toolbox.");
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.LargeView.FalseArmTextbox.Exists, "False Arm Textbox does not exist on decision large view after dragging tool in from the toolbox.");
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.DoneButton.Exists, "Done button does not exist on decision large view after dragging tool in from the toolbox.");
            //Resized Decision Tool Window
            var sizeBefore = DialogsUIMap.DecisionOrSwitchDialog.LargeView.Height;

            DialogsUIMap.Resize_Decision_LargeTool();
            Assert.IsTrue(DialogsUIMap.DecisionOrSwitchDialog.LargeView.Height > sizeBefore);
            DialogsUIMap.Click_Decision_Dialog_Cancel_Button();
        }