Skip to content

Commit

Permalink
A newly added section of code in this tutorial test just needed to be…
Browse files Browse the repository at this point in the history
… skipped when being run as small molecules. (#3265)

Internal test issue, not reported by any user
  • Loading branch information
bspratt authored Dec 5, 2024
1 parent d07bb08 commit 59ec83d
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions pwiz_tools/Skyline/TestTutorial/TargetedMSMSTutorialTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -577,33 +577,36 @@ private void LowResTest()
if (!AsSmallMoleculeMasses)
VerifyDotProducts(0.99, 0.98);

// Switch documents for the next screenshot with all 5 runs
RunUI(() => SkylineWindow.SaveDocument());
if (!AsSmallMolecules)
{
// Switch documents for the next screenshot with all 5 runs
RunUI(() => SkylineWindow.SaveDocument());

var fiveRunFile = TestFilesDirs[2].GetTestPath(@"BSA_Protea_label_free_20100323_meth3_long_all.sky");
RunUI(() => SkylineWindow.OpenFile(fiveRunFile));
FindNode("K.LVNELTEFAK.T [66, 75]");
var fiveRunFile = TestFilesDirs[2].GetTestPath(@"BSA_Protea_label_free_20100323_meth3_long_all.sky");
RunUI(() => SkylineWindow.OpenFile(fiveRunFile));
FindNode("K.LVNELTEFAK.T [66, 75]");

RunUI(() =>
{
SkylineWindow.ShowReplicateOrder(SummaryReplicateOrder.time);
SkylineWindow.GraphPeakArea.TryGetGraphPane(out AreaReplicateGraphPane pane);
pane.GraphSummary.ActiveLibrary = true;
});
RunUI(() =>
{
SkylineWindow.ShowReplicateOrder(SummaryReplicateOrder.time);
SkylineWindow.GraphPeakArea.TryGetGraphPane(out AreaReplicateGraphPane pane);
pane.GraphSummary.ActiveLibrary = true;
});

PauseForPeakAreaGraphScreenShot("Peak Areas five point calibration curve");
PauseForPeakAreaGraphScreenShot("Peak Areas five point calibration curve");

// Check graph p23. (checked)
RunUI(() =>
{
// Restore PRM tutorial to its state prior to taking the 5-point calibration curve screenshot
SkylineWindow.OpenFile(GetTestPath(@"Low Res\BSA_Protea_label_free_meth3.sky"));
WaitForDocumentLoaded();
// Check graph p23. (checked)
RunUI(() =>
{
// Restore PRM tutorial to its state prior to taking the 5-point calibration curve screenshot
SkylineWindow.OpenFile(GetTestPath(@"Low Res\BSA_Protea_label_free_meth3.sky"));
WaitForDocumentLoaded();

SkylineWindow.ShowAllTransitions();
if (!IsCoverShotMode)
SkylineWindow.ShowSplitChromatogramGraph(true);
});
SkylineWindow.ShowAllTransitions();
if (!IsCoverShotMode)
SkylineWindow.ShowSplitChromatogramGraph(true);
});
}

// Select precursor
if (!AsSmallMoleculeMasses)
Expand Down

0 comments on commit 59ec83d

Please sign in to comment.