Skip to content

Conversation

@labkey-chrisj
Copy link
Contributor

Rationale

This change attempts to address intermittent test failures in SNDTest.categoryPermissionsUI.

The theory of this change is that the order of the columns does not appear to be fixed, but the test references (and asserts) based on hard-coded column indexes. This adds a method in the test to get the column index based on the text of the column header.

Copy link
Contributor

@labkey-martyp labkey-martyp left a comment

Choose a reason for hiding this comment

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

The change looks good to me. I kicked off a few more runs on TC to test flakiness.

@labkey-chrisj
Copy link
Contributor Author

@labkey-martyp
Copy link
Contributor

I also ran just the SND suite a few more times and they all passed. https://teamcity.labkey.org/buildConfiguration/LabKey_Trunk_LabkeyPremiumTrunk_GitModules_SndSqlserver?branch=category_security_table_columns&buildTypeTab=overview

Copy link
Member

@labkey-tchad labkey-tchad left a comment

Choose a reason for hiding this comment

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

Thank you for doing this

Comment on lines 2127 to 2128
var headersLoc = Locator.id("category-security").descendant(Locator.tagWithClass("th", "group-hdr"));
return getTexts(headersLoc.findElements(getDriver())).indexOf(column) +1;
Copy link
Member

Choose a reason for hiding this comment

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

Consider throwing an exception if the column doesn't exist

@labkey-chrisj labkey-chrisj merged commit bc54cd8 into develop Oct 1, 2025
6 checks passed
@labkey-chrisj labkey-chrisj deleted the fb_category_security_table_columns branch October 1, 2025 19:13
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