From 59ec83dcd0cb9aa19e41224a66f98f82f47eea9e Mon Sep 17 00:00:00 2001 From: Brian Pratt Date: Thu, 5 Dec 2024 13:16:24 -0800 Subject: [PATCH] A newly added section of code in this tutorial test just needed to be skipped when being run as small molecules. (#3265) Internal test issue, not reported by any user --- .../TestTutorial/TargetedMSMSTutorialTest.cs | 47 ++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/pwiz_tools/Skyline/TestTutorial/TargetedMSMSTutorialTest.cs b/pwiz_tools/Skyline/TestTutorial/TargetedMSMSTutorialTest.cs index 7d8e9eac02..b08c153b41 100644 --- a/pwiz_tools/Skyline/TestTutorial/TargetedMSMSTutorialTest.cs +++ b/pwiz_tools/Skyline/TestTutorial/TargetedMSMSTutorialTest.cs @@ -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)