Esempio n. 1
0
        public void OpeningCardindexInboxCurrentTest()
        {
            AuthorizationAskodPage authorizationAskodPage = new AuthorizationAskodPage(driver);
            OpenCardindexComponent openCardindexComponent = new OpenCardindexComponent(driver);

            authorizationAskodPage.Login(authorizationAskodPage.validLogin, authorizationAskodPage.validPassword);
            openCardindexComponent.OpenCardindexList();

            Assert.True(IsElementPresent(openCardindexComponent.BredCrumbsFilemanagerIncomingCurrent),
                        $"Element '{openCardindexComponent.BredCrumbsFilemanagerIncomingCurrent}' is not present on the page as expected");

            Thread.Sleep(7000);
        }
Esempio n. 2
0
        public void EditingIncomingCurrentCardFilemanagerTest()
        {
            AuthorizationAskodPage authorizationAskodPage = new AuthorizationAskodPage(driver);
            OpenCardindexComponent openCardindexComponent = new OpenCardindexComponent(driver);
            OpenCardComponent      openCardComponent      = new OpenCardComponent(driver);
            EditCardComponent      editingIncomingCurrentCardFilemanagerPage = new EditCardComponent(driver);

            authorizationAskodPage.Login(authorizationAskodPage.validLogin, authorizationAskodPage.validPassword);
            openCardindexComponent.OpenCardindexList();
            openCardComponent.OpenIncomingCard();

            driver.SwitchTo().Frame(0);

            editingIncomingCurrentCardFilemanagerPage.ContentField.SendKeys("Test");
            editingIncomingCurrentCardFilemanagerPage.CorespondentOpeningDirectory.Click();


            Thread.Sleep(27000);
        }
Esempio n. 3
0
        public void GenerateReportTest()
        {
            string expectedTextMessage = "Звіт сформований, завантажити?";

            AuthorizationAskodPage    authorizationAskodPage    = new AuthorizationAskodPage(driver);
            OpenCardindexComponent    openCardindexComponent    = new OpenCardindexComponent(driver);
            ToolbarCardindexComponent toolbarCardindexComponent = new ToolbarCardindexComponent(driver);

            authorizationAskodPage.Login(authorizationAskodPage.validLogin, authorizationAskodPage.validPassword);
            openCardindexComponent.OpenCardindexList();

            Thread.Sleep(17000);
            toolbarCardindexComponent.GenerateReport();

            string actualTextMessage = toolbarCardindexComponent.TextMessageSuccessGenerateReport.Text.Trim();

            Assert.AreEqual(expectedTextMessage, actualTextMessage, $"An expected message is {expectedTextMessage}, but actual message is {actualTextMessage}");

            Thread.Sleep(17000);
        }