Skip to content

Update tests that relied on obsolete actions.#3001

Open
labkey-klum wants to merge 1 commit into
developfrom
fb_missing_action_fixes
Open

Update tests that relied on obsolete actions.#3001
labkey-klum wants to merge 1 commit into
developfrom
fb_missing_action_fixes

Conversation

@labkey-klum
Copy link
Copy Markdown
Contributor

Rationale

A recent PR removed some internal actions like query.internalNewView and reports.reportInfo. I've updated those tests to rely on alternate ways to accomplish the same actions.

@labkey-klum labkey-klum requested a review from labkey-tchad May 15, 2026 20:31
@labkey-klum labkey-klum self-assigned this May 15, 2026
Copy link
Copy Markdown
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.

Some suggestions

Comment on lines +1691 to +1699
drt.clickInsertNewRow();
waitForElement(Locator.name("quf_Schema"));
setFormElement(Locator.name("quf_Schema"), schema);
setFormElement(Locator.name("quf_QueryName"), query);
if (viewName != null)
setFormElement(Locator.name("ff_viewName"), viewName);
clickButton("Create");
StringBuilder strFields = new StringBuilder(fields[0]);
for (int i = 1; i < fields.length; i ++)
{
strFields.append("&");
strFields.append(fields[i]);
}
setFormElement(Locator.name("ff_columnList"), strFields.toString());
clickButton("Save");
setFormElement(Locator.name("quf_Name"), viewName);
setFormElement(Locator.name("quf_Columns"), String.join("&", fields));
setFormElement(Locator.name("quf_Flags"), "0");
clickButton("Submit");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use the page class returned by clickInsertNewRow instead of hard-coded locators.

getProjectName() + "/" + VISIT_STUDY_FOLDER_NAME + "/" + publishFolderName,
"reportInfo", Map.of("reportId", getUrlParam("reportId"))));
waitForText("Report Debug Information");
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The for-loop above (over VISIT_CHARTS) no longer does anything interesting. Might as well remove it.

Comment on lines +327 to +328
drt = new DataRegionTable("query", getDriver());
int xmlIdx = drt.getColumnIndex("DescriptorXML");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure how many reports get created by this test but you might want to increase the grid size to make sure nothing is hiding on later pages.

Suggested change
drt = new DataRegionTable("query", getDriver());
int xmlIdx = drt.getColumnIndex("DescriptorXML");
drt = new DataRegionTable("query", getDriver());
drt.setPageSize(100);
int xmlIdx = drt.getColumnIndex("DescriptorXML");

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.

2 participants