예제 #1
0
        /// <summary>
        /// Search and edit the report period.
        /// </summary>
        public void SearchAndEditTheReportPeriod()
        {
            ReportPeriodSearch.SendKeys(rDescription);
            EditButton.Click();

            var dateString = EditedBeginsOn.GetAttribute("value");
            var endDate    = PageHelper.ConvertDateToFormat(dateString, "dd/MM/yyyy");
            var eDate      = endDate.AddDays(2).ToString("dd/MM/yyyy");

            Description.Clear();
            Description.SendKeys("Edited" + rDescription);
            Driver.ExecuteJavaScript(@"$('#EndsOn').val('" + eDate + "')");
            Driver.ExecuteJavaScript(@"$('#SubmissionDueDate').val('" + eDate + "')");
            Driver.ExecuteJavaScript(@"$('#PaymentDate').val('" + eDate + "')");
            CalendarYear.SendKeys("2018");
            FiscalYear.SendKeys("2018");
            SaveReportingPeriodButton.Click();
            BackToList.Click();
        }
예제 #2
0
 /// <summary>
 /// Search and verify the edited report period.
 /// </summary>
 public void SearchAndVerifyTheEditedReportPeriod()
 {
     ReportPeriodSearch.SendKeys("Edited" + rDescription);
     ReportPeriodSearchResult_Desc.Text.Should().BeEquivalentTo("Edited" + rDescription);
 }
예제 #3
0
 /// <summary>
 /// Search and verify the deleted report period.
 /// </summary>
 public void SearchAndVerifyTheDeletedReportPeriod()
 {
     ReportPeriodSearch.SendKeys(rDescription);
     NoResults.Text.Should().BeEquivalentTo("No results to show");
 }