Esempio n. 1
0
            public void platform_Tags_RemoveTag()
            {
                _browser.Navigate(_config.ConfigObject.Echo);
                Auth0LoginPage    loginPage         = new Auth0LoginPage(_browser);
                NewsRoomPage      newsRoomPage      = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser);
                TagManagementPage tagManagementPage = new TagManagementPage(_browser);

                tagManagementPage.ClickOnTags();
                tagManagementPage.ClickOnCreateBtn();
                string tagName = tagManagementPage.FillTheTagName();

                tagManagementPage.InsertSynonyms();
                tagManagementPage.ClickOnDoneBtn();
                tagManagementPage.SearchForTagName(tagName);
                tagManagementPage.ClickOnSelectedTag();
                tagManagementPage.ClickOnRemoveTagBtn();
                tagManagementPage.ClickOnYesBtn();
                Assert.True(tagManagementPage.VliadateTagRemoved(), "The Tag was not removed");
            }
Esempio n. 2
0
            public void platform_Tags_CreateNewTag()
            {
                _browser.Navigate(_config.ConfigObject.Echo);
                Auth0LoginPage loginPage    = new Auth0LoginPage(_browser);
                NewsRoomPage   newsRoomPage = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser);

                TagManagementPage tagManagementPage = new TagManagementPage(_browser);

                tagManagementPage.ClickOnTags();
                tagManagementPage.ClickOnCreateBtn();
                string tagName = tagManagementPage.FillTheTagName();

                tagManagementPage.InsertSynonyms();
                tagManagementPage.ClickOnDoneBtn();
                tagManagementPage.SearchForTagName(tagName);

                var actualresult  = tagManagementPage.GetTagText();
                var expctedResult = tagName;

                Assert.AreEqual(expctedResult, actualresult, $"Expected tag name was: {expctedResult} Actual: {actualresult}.");
            }
Esempio n. 3
0
            public void platform_Tags_CreateNewTag_ValidateSucMsg()
            {
                _browser.Navigate(_config.ConfigObject.Echo);
                string         popUpMessageText = _params["popupText"].ToString();
                Auth0LoginPage loginPage        = new Auth0LoginPage(_browser);
                NewsRoomPage   newsRoomPage     = loginPage.LoginNewsRoom(_config.ConfigObject.Users.AdminUser);

                TagManagementPage tagManagementPage = new TagManagementPage(_browser);

                tagManagementPage.ClickOnTags();
                tagManagementPage.ClickOnCreateBtn();
                string tagName = tagManagementPage.FillTheTagName();

                popUpMessageText = popUpMessageText.Replace("<tag>", tagName);
                tagManagementPage.InsertSynonyms();
                tagManagementPage.ClickOnDoneBtn();

                var actualResult   = tagManagementPage.GetPopUpText().Replace("DISMISS", "").Replace("\n", "");
                var expectedResult = popUpMessageText;

                Assert.AreEqual(expectedResult, actualResult, $"Expected text was: {expectedResult} Actual: {actualResult}");
            }