Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ public void writeSameCheckboxCell(RenderContext ctx, HtmlWriter out)
).appendTo(out);

StringBuilder onchange = new StringBuilder("b = this.checked;");
for (DisplayColumn col : getColumns())
// Index starts at 1 -- always leave the first column visible (Issue 53620)
for (int i = 1; i < getColumns().size(); i++)
{
DisplayColumn col = getColumns().get(i);
onchange.append("document.getElementsByName('").append(col.getFormFieldName(ctx)).append("')[0].style.display = b ? 'none' : 'block';\n");
}
onchange.append("if (b) { ").append(groupName).append("Updated(); }");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public void writeSameCheckboxCell(RenderContext ctx, HtmlWriter out)
InputBuilder.checkbox().name(id).id(id).appendTo(out);
StringBuilder onChange = new StringBuilder("b = this.checked;\n");

getColumns().forEach(col -> {
// Index starts at 1 -- always leave the first column visible (Issue 53620)
for (int i = 1; i < getColumns().size(); i++)
{
DisplayColumn col = getColumns().get(i);
if (col.getColumnInfo() != null)
{
onChange.append("s = document.getElementsByName('")
Expand All @@ -59,7 +62,7 @@ public void writeSameCheckboxCell(RenderContext ctx, HtmlWriter out)
.append(col.getFormFieldName(ctx))
.append("')[0].style.display = b || s == 0 ? 'none' : 'block';\n");
}
});
}

onChange.append(" if (b) { ")
.append(inputName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public void uploadRun()
setFormElement(Locator.name("stndCurveFitInput"), "FI");
setFormElement(Locator.name("unkCurveFitInput"), "FI-Bkgd-Neg");
setFormElement(Locator.name("__primaryFile__"), TEST_ASSAY_LUM_FILE4);
scrollIntoView(Locator.lkButton("Next"), true);
clickButton("Next", defaultWaitForPage * 2);

// make sure the Standard checkboxes are checked
Expand All @@ -139,12 +140,11 @@ public void uploadRun()
setFormElement(Locator.xpath("//input[@type='text' and contains(@name, '_LotNumber')][1]"), TEST_ANALYTE_LOT_NUMBER);
// set negative control and negative bead values
checkCheckbox(Locator.name("_analyte_" + ANALYTE3 + "_NegativeControl"));
checkCheckbox(Locator.name("_analyte_" + ANALYTE1 + "_NegativeBeadCheckBox")); // Issue 53620: "Same" checkbox for subtract negative bead
selectOptionByText(Locator.name("_analyte_" + ANALYTE1 + "_NegativeBead"), ANALYTE3);
selectOptionByText(Locator.name("_analyte_" + ANALYTE2 + "_NegativeBead"), ANALYTE3);
// switch to using MyNegative bead for subtraction
checkCheckbox(Locator.name("_analyte_" + ANALYTE4 + "_NegativeControl"));
selectOptionByText(Locator.name("_analyte_" + ANALYTE1 + "_NegativeBead"), ANALYTE4);
selectOptionByText(Locator.name("_analyte_" + ANALYTE2 + "_NegativeBead"), ANALYTE4);
clickButton("Save and Finish");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ public void selectPositivityFile(File file, boolean expectDuplicateFile)
setFormElement(Locator.name("__primaryFile__"), file);
if (expectDuplicateFile)
waitForText("A file with name '" + file.getName() + "' already exists");
scrollIntoView(Locator.lkButton("Next"), true);
clickButton("Next");
}

Expand Down