public void testColumnGroups_headers() {
testAppFunctionalPage("/components/datatable/dataTableColumnGroups.jsf");
TableInspector table = dataTable("formID:twoHeadersTable");
TableSectionInspector header = table.header();
TableRowInspector firstHeaderRow = header.row(0);
firstHeaderRow.assertCellParams(new TableCellParams[]{
new TableCellParams(NBSP_CHAR, 1, 2,
"border-right: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0"),
new TableCellParams("String Fields", 4, 1,
"background: SteelBlue; border-right: 1px solid #a0a0a0; border-bottom: ? none ?"),
new TableCellParams("Integer Fields", 3, 1,
"background: ForestGreen; border-right: ? none ?; border-bottom: ? none ?")
});
TableRowInspector secondHeaderRow = header.row(1);
secondHeaderRow.assertCellParams(new TableCellParams[]{
new TableCellParams(null, 1, 1,
"background: LightSteelBlue; border-right: ? none ?; border-bottom: 1px solid #a0a0a0"),
new TableCellParams("String Field 1", 1, 1,
"background: LightSteelBlue; border-right: ? none ?; border-bottom: 1px solid #a0a0a0"),
new TableCellParams("String Field 2", 1, 1,