-
Notifications
You must be signed in to change notification settings - Fork 9
Add test automation for miscellaneous sample and sample type issues. #2491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…a required parent. Add a list of realistic domain names. Remove deprecated code. Add an isRequired parameter to EntityTypeDesigner
… used in the name expression. Remove check for 'Add' button being disabled if all parent entity types are added. It added little value and made the test fragile.
StringBuilder sbNameExpression = new StringBuilder(); | ||
|
||
// Covers Issue 52180 | ||
String parentsampleTypeEncoded = PARENT_SAMPLE_TYPE.replace("/", "\\/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this what PARENT_SAMPLE_TYPE_INPUT
is for?
private static final String DEFAULT_SAMPLE_PARENT_VALUE = "SS" + | ||
EscapeUtil.escapeForNameExpression(TestDataGenerator.randomString(3).replaceAll("[_)]", ".")); // '_' is used as delimiter to get batchRandomId and ) is used to close the defaultValue() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I was messing with this test, escaping didn't seem to work for default values. The backslashes just ended up being part of the default value. If escaping worked, you should be able to not exclude _
and )
from the value.
|
||
checker().verifyTrue("Name of derived sample doesn't look correct. Should contain 'Parent Sample'.", | ||
derivedSampleName.contains("Parent Sample")); | ||
checker().verifyTrue("Name of derived sample doesn't look correct. Should contain 'tricky06'.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of 'tricky06' is a little magical here. Perhaps capture this in a constant somewhere like PARENT_FIELD_VALUE_PREFIX = "tricky06"
?
Rationale
Updating shared test components to aid with the test automation identified in the related PR.
Related Pull Requests
Changes