Beispiel #1
0
        //This test could fail because of the really long time it takes to save a workflow and close the old tab
        public void TabManagerTests_CodedUI_CreateTwoWorkflowsSwitchBetween_ExpectStarNotShowingInName()
        {
            const string firstName  = "Bug_10528";
            const string secondName = "Bug_10528_InnerWorkFlow";

            ExplorerUIMap.EnterExplorerSearchText("Bug_10528");

            ExplorerUIMap.DoubleClickOpenProject("localhost", "INTEGRATION TEST SERVICES", firstName);

            var tab1 = TabManagerUIMap.GetActiveTab();

            ExplorerUIMap.DoubleClickOpenProject("localhost", "INTEGRATION TEST SERVICES", secondName);

            var tab2 = TabManagerUIMap.GetActiveTab();

            //Switch tabs a couple of times
            TabManagerUIMap.Click(tab1);
            TabManagerUIMap.Click(tab2);
            TabManagerUIMap.Click(tab1);

            //Check that the tabs names dont have stars in them

            var tabCount = TabManagerUIMap.GetTabCount();

            Assert.IsTrue(tabCount >= 2);
            for (int i = 0; i < tabCount; i++)
            {
                Assert.IsFalse(TabManagerUIMap.GetTabNameAtPosition(i).Contains("*"));
            }
        }