public function test_CTV3_987_Schedules_Views_Week()
 {
     $SENDER_LOGIN = $this->getGlobalValue('user.1.login');
     $SENDER_PASSWORD = $this->getGlobalValue('user.1.password');
     $loginPage = new LoginPage($this);
     $loginPage->doLogin($SENDER_LOGIN, $SENDER_PASSWORD);
     $mailPage = new MailPage($this);
     $mailPage->clickCalendar();
     $calendar = new CalendarPage($this);
     $calendar->clickViewWeek();
     $this->waitForAjaxAndAnimations();
     $this->assertContains(DateUtils::getNumericDayMonth(), $calendar->getDayWeekToday(), "The today does not match in day and month of Calendar of week");
     $this->assertContains(DateUtils::getShortDayOfWeek(), $calendar->getDayWeekToday(), "The today does not match in today's day of Calendar of week");
     //Verify if has the format date in layout title
     $this->assertTrue(preg_match_all("/\\A\\d{1,2}( [a-z]{3})? - \\d{1,2} [a-z]{3,}, \\d{4}\\z/", $calendar->getMonthAndYearInLayoutTitle(), $matches) == 1, "No match date of week in layout title  on Calendar of week");
     $calendar->clickLastWeekButton();
     $this->assertTrue(preg_match_all("/\\A\\d{1,2}( [a-z]{3})? - \\d{1,2} [a-z]{3,}, \\d{4}\\z/", $calendar->getMonthAndYearInLayoutTitle(), $matches) == 1, "No match date of last week in layout title on Calendar of week");
     $calendar->clickNextWeekButton();
     $calendar->clickNextWeekButton();
     $this->assertTrue(preg_match_all("/\\A\\d{1,2}( [a-z]{3})? - \\d{1,2} [a-z]{3,}, \\d{4}\\z/", $calendar->getMonthAndYearInLayoutTitle(), $matches) == 1, "No match date of Next week in layout title  on Calendar of week");
 }