/* ********************************************************************************************************
* Tests ********************************************************************* ***********************************
*/
@Test
public void testStates() throws Exception {
Select leftColor = new Select(page.getSelectLeftColor());
Select rightColor = new Select(page.getSelectRightColor());
Select textColor = new Select(page.getSelectTextColor());
for (ImageState state : ImageState.values()) {
leftColor.selectByIndex(state.getLeftColor().getIndex());
rightColor.selectByIndex(state.getRightColor().getIndex());
textColor.selectByIndex(state.getTextColor().getIndex());
page.getSubmitButton().click();
testImage(
state.getLeftColor().getValue(),
state.getRightColor().getValue(),
state.getTextColor().getValue());