Skip to content
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

Test coverage for Issue 39496 #2089

Merged
merged 5 commits into from
Oct 12, 2024
Merged

Test coverage for Issue 39496 #2089

merged 5 commits into from
Oct 12, 2024

Conversation

labkey-chrisj
Copy link
Contributor

@labkey-chrisj labkey-chrisj commented Oct 10, 2024

Rationale

This adds regression coverage for Issue 39496, which verifies that missing values written to an assay via the SaveBatch API are handled as expected.

On a related note, this test sets up a simple way to verify whether or not missingValue indicators should be exported or not; Issue 37610 tracks this question and is a very stale issue; current behavior is to export empty values (not showing missing-value indicators as they appear in the dataregion) and in the years this issue has been around, nobody has asked for a fix. (so, this might be an opportune time to decide whether or not to expect missingValue indicators to be exported)

It also attempts to address the intermittent test failure in BiologicsSampleTimelineTest.testEditSampleDetailCausesTimelineEvent, which seems to be caused by a race condition in which the test looks for a select in DetailTableEdit before it is rendered, without waiting for it to appear.

Related Pull Requests

n/a

Changes

  • add a new test case
  • try to fix intermittent test failure

@labkey-chrisj labkey-chrisj requested review from cnathe and a team October 10, 2024 19:43
@labkey-chrisj labkey-chrisj self-assigned this Oct 10, 2024
@labkey-chrisj labkey-chrisj requested review from labkey-tchad and labkey-danield and removed request for a team, labkey-tchad and labkey-danield October 10, 2024 19:43
// expect 3 rows in this assay, p2 and p3 should get mv indicators in the count column
Map<String, List<Integer>> expectedMVIndicators = new HashMap<>();
expectedMVIndicators.put("Count", List.of(1, 2));
checkMvIndicatorPresent(dataRegion, expectedMVIndicators);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good and matches the approach we discussed!
looks like the other test cases in this file also have a call to checkDataregionData() that goes with the checkMvIndicatorPresent() call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a check for dataRegion data to the test, thanks for the suggestion

@labkey-chrisj labkey-chrisj merged commit db4e3ef into develop Oct 12, 2024
4 checks passed
@labkey-chrisj labkey-chrisj deleted the fb_issue39496_test branch October 12, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants