Skip to content

Regression coverage for 52245#895

Merged
labkey-klum merged 4 commits intodevelopfrom
fb_issue_52245
Jun 23, 2025
Merged

Regression coverage for 52245#895
labkey-klum merged 4 commits intodevelopfrom
fb_issue_52245

Conversation

@labkey-klum
Copy link
Contributor

Rationale

This adds test coverage for 52245 and sets up the same repro scenario as outlined in the issue.

Comment on lines +1234 to +1235
clickButton("Create Run Group");
setFormElement(Locator.name("name"), RUN_GROUP3_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a wait after the clickButton and before the setFormElement?
Like:
waitForElement(Locator.name("name"));

Copy link
Member

Choose a reason for hiding this comment

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

The page is probably static. Waiting for elements isn't quite as necessary outside of the apps.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, this is all server-rendered HTML. Waits are fine to add but probably not strictly necessary here.

Comment on lines +1234 to +1235
clickButton("Create Run Group");
setFormElement(Locator.name("name"), RUN_GROUP3_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

The page is probably static. Waiting for elements isn't quite as necessary outside of the apps.

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

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

One small suggestion for additional validation

Comment on lines +1234 to +1235
clickButton("Create Run Group");
setFormElement(Locator.name("name"), RUN_GROUP3_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, this is all server-rendered HTML. Waits are fine to add but probably not strictly necessary here.

_customizeViewsHelper.applyCustomView();
assertNotEquals("All rows should have a value for the run group", 0, dataTable.getDataRowCount());
dataTable.setFilter("Fraction/Run/ExperimentRunLSID/RunGroups", "Is Blank");
assertEquals("All rows should have a value for the run group", 0, dataTable.getDataRowCount());
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to check the value is rendering correctly here, making sure we don't have a broken lookup or similar.

@labkey-klum labkey-klum merged commit 244420c into develop Jun 23, 2025
6 checks passed
@labkey-klum labkey-klum deleted the fb_issue_52245 branch June 23, 2025 19:35
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.

4 participants