Skip to content

Commit

Permalink
schrodinger: m10 third test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Feb 9, 2021
1 parent 10d7ea5 commit 1e0b638
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Expand Up @@ -318,9 +318,9 @@ public void mod10test03LookupTablesAndAttributeOverrides() {
form.addAttributeValue("familyName", "kirk2");
form.and().and().feedback().assertError();
form
.assertPropertyWithTitleTextExist("telephoneNumber", "Primary telephone number of the user, org. unit, etc.")
.assertPropertyWithTitleTextDoesntExist("telephoneNumber", "Primary telephone number of the user, org. unit, etc.")
.assertPropertyWithTitleTextExist("telephoneNumber", "Mobile Telephone Number")
.assertPropertyEnabled("honorificSuffix");
.assertPropertyDisabled("honorificSuffix");
}

@Test(dependsOnMethods = {"mod10test03LookupTablesAndAttributeOverrides"})
Expand Down
Expand Up @@ -506,7 +506,12 @@ public PrismForm<T> assertPropertyWithTitleTextDoesntExist(String propertyName,
}

public PrismForm<T> assertPropertyEnabled(String propertyName) {
Assert.assertTrue(isPropertyEnabled(propertyName), "Property " + propertyName + " is disabled.");
Assert.assertTrue(isPropertyEnabled(propertyName), "Property " + propertyName + " should be enabled.");
return this;
}

public PrismForm<T> assertPropertyDisabled(String propertyName) {
Assert.assertFalse(isPropertyEnabled(propertyName), "Property " + propertyName + " should be disabled.");
return this;
}

Expand Down

0 comments on commit 1e0b638

Please sign in to comment.