Skip to content

Update tests that relied on obsolete actions.#3001

Merged
labkey-klum merged 3 commits into
developfrom
fb_missing_action_fixes
May 18, 2026
Merged

Update tests that relied on obsolete actions.#3001
labkey-klum merged 3 commits 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 thread src/org/labkey/test/tests/TimeChartImportTest.java
labkey-klum and others added 2 commits May 18, 2026 09:13
@labkey-klum labkey-klum merged commit 40ef9c2 into develop May 18, 2026
6 checks passed
@labkey-klum labkey-klum deleted the fb_missing_action_fixes branch May 18, 2026 18:56
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