public void testTodayNoneButtons() {
testAppFunctionalPage("/components/datechooser/dateChooserTodayNoneButton.jsf");
final String dateFormat = "dd MMMM, yyyy";
DateChooserInspector todayDateChooser = dateChooser("formID:today");
DateChooserInspector noneDateChooser = dateChooser("formID:none");
ElementInspector todayDateOutput = element("formID:todayDateString");
ElementInspector selectedDateButton = element("selectedDate");
ElementInspector selectedDateOutput = element("selectedDateInfo");
ElementInspector todayStyleButton = element("todayStyleButton");
ElementInspector noneStyleButton = element("noneStyleButton");
ElementInspector todayInfoOutput = element("todayInfo");
ElementInspector noneInfoOutput = element("noneInfo");
ElementInspector submitter = element("formID:submit");
ElementInspector noneSelectedDateButton = element("noneSelectedDate");
ElementInspector noneSelectedDateOutput = element("noneSelectedDateInfo");
ElementInspector noneDateOutput = element("formID:noneDateString");
ElementInspector todayStyleButton1 = element("todayStyleButton1");
ElementInspector noneStyleButton1 = element("noneStyleButton1");
ElementInspector todayInfoOutput1 = element("todayInfo1");
ElementInspector noneInfoOutput1 = element("noneInfo1");
String todayDate = checkAndGetCurrentDateSelected(dateFormat, todayDateOutput, selectedDateButton, selectedDateOutput);
todayDateChooser.field().assertValue(selectedDateOutput.text());
todayDateChooser.field().assertValue(todayDateOutput.text());
checkButtonPairState(todayStyleButton, todayInfoOutput, noneStyleButton, noneInfoOutput);
todayDateChooser.button().mouseDown();
//click 'None' button and check this button state
checkButtonStateAndSelectedDateOnEmptiness(todayDateChooser.calendar(), todayDateOutput, selectedDateButton,
selectedDateOutput, todayStyleButton, noneStyleButton, todayInfoOutput,
noneInfoOutput, submitter, noneSelectedDateButton, noneSelectedDateOutput,
noneDateOutput);
// assertEquals("", selenium.getValue(noneFieldId));
noneDateChooser.field().assertValue("");
checkButtonPairState(noneStyleButton1, noneInfoOutput1, todayStyleButton1, todayInfoOutput1);
noneDateChooser.button().mouseDown();
checkTodayNoneButtons(noneDateChooser.calendar(), submitter, noneSelectedDateButton, noneSelectedDateOutput,
noneDateOutput, todayDate);
noneSelectedDateButton.click();
noneDateChooser.field().assertValue(noneSelectedDateOutput.text());
noneDateChooser.field().assertValue(noneDateOutput.text());
checkButtonPairState(todayStyleButton1, todayInfoOutput1, noneStyleButton1, noneInfoOutput1);
}