public void requiredFields() throws Exception {
String errorMsg = "value is required";
String groupID = "verifyRequiredFieldsGroupID";
String groupName = "verifyRequiredFieldsGroupName";
CreateVersionGroupPage groupPage = dashboardPage
.goToGroups()
.createNewGroup()
.saveGroupFailure();
assertThat(groupPage.getErrors())
.contains(errorMsg, errorMsg)
.as("The two errors are value is required");
groupPage = groupPage.clearFields()
.inputGroupName(groupName)
.saveGroupFailure();
assertThat(groupPage.getErrors())
.contains(errorMsg)
.as("The value required error shown");
groupPage = groupPage.clearFields()
.inputGroupId(groupID)
.saveGroupFailure();
assertThat(groupPage.getErrors())
.contains(errorMsg)
.as("The value required error shown");
}