Exemplo n.º 1
0
        public void ThenTheCaseCreationDialogIsClosed()
        {
            var response =
                FlowUtilities.WaitUntil(() => !InteractionUtilities.IsVisible("CaseDialog", this.environment.Driver),
                                        TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(1));

            Assert.True(response.Success, "The case creation page should not be displayed.");
        }
Exemplo n.º 2
0
        public string SetUniqueRexisId()
        {
            Guid   guid   = Guid.NewGuid();
            string unicId = guid.ToString();

            InteractionUtilities.SendKeysCharByChar(RexisId, unicId);
            return(unicId);
        }
Exemplo n.º 3
0
        public void AssertThatAllProgressBarsAreRemoved()
        {
            bool elementHasDisappeared = false;

            var response = FlowUtilities.WaitUntil(() =>
            {
                elementHasDisappeared = !InteractionUtilities.IsVisible("CaseUploadFileProgressBar", this.driver);
                return(elementHasDisappeared);
            },
                                                   TimeSpan.FromSeconds(300), TimeSpan.FromMilliseconds(500));

            Assert.True(response.Success, "The progress bars were not removed at the end of the upload");
        }
Exemplo n.º 4
0
 public void SetRexisId(string value)
 {
     InteractionUtilities.SendKeysCharByChar(RexisId, value);
 }
        private ItemReturnOperation PaintReferenceHeader(int i, bool usingSearch)
        {
            ItemReturnOperation returnOperation = new ItemReturnOperation();

            Rect rectHeader = GUILayoutUtility.GetRect(GUIContent.none, CoreGUIStyles.GetToggleButtonNormalOn());

            if (!usingSearch)
            {
                this.PaintDragHandle(i, rectHeader);
            }

            string variableName = (this.isExpanded[i].target ? " ▾ " : " ▸ ");

            variableName += this.GetReferenceName(i);

            Texture2D variableIcon = VariableEditorUtils.GetIcon(this.GetReferenceType(i));

            GUIStyle style = (this.isExpanded[i].target
                ? CoreGUIStyles.GetToggleButtonMidOn()
                : CoreGUIStyles.GetToggleButtonMidOff()
                              );

            Rect rectDelete = new Rect(
                rectHeader.x + rectHeader.width - 25f,
                rectHeader.y,
                25f,
                rectHeader.height
                );

            Rect rectMain = new Rect(
                rectHeader.x + 25f,
                rectHeader.y,
                rectHeader.width - (25f * 2f),
                rectHeader.height
                );

            if (usingSearch)
            {
                style = (this.isExpanded[i].target
                    ? CoreGUIStyles.GetToggleButtonLeftOn()
                    : CoreGUIStyles.GetToggleButtonLeftOff()
                         );

                rectMain = new Rect(
                    rectHeader.x,
                    rectHeader.y,
                    rectHeader.width - 25f,
                    rectHeader.height
                    );
            }

            if (GUI.Button(rectMain, new GUIContent(variableName, variableIcon), style))
            {
                this.ToggleExpand(i);
            }

            GUIContent gcDelete = InteractionUtilities.Get(InteractionUtilities.Icon.Delete);

            if (GUI.Button(rectDelete, gcDelete, CoreGUIStyles.GetButtonRight()))
            {
                returnOperation.removeIndex = true;
            }

            this.PaintTags(i);
            return(returnOperation);
        }