diff --git a/src/Cody.VisualStudio.Tests/ChatLoggedBasicTests.cs b/src/Cody.VisualStudio.Tests/ChatLoggedBasicTests.cs index 5b31510..1137d85 100644 --- a/src/Cody.VisualStudio.Tests/ChatLoggedBasicTests.cs +++ b/src/Cody.VisualStudio.Tests/ChatLoggedBasicTests.cs @@ -28,12 +28,12 @@ public async Task Solution_Name_Is_Added_To_Chat_Input() Assert.Equal("ConsoleApp1", tags.Last().Name); } - //[VsFact(Version = VsVersion.VS2022)] + [VsFact(Version = VsVersion.VS2022)] public async Task Active_File_Name_And_Line_Selection_Is_Showing_In_Chat_Input() { // given - OpenSolution(SolutionsPaths.GetConsoleApp1File("ConsoleApp1.sln")); await WaitForPlaywrightAsync(); + await OpenSolution(SolutionsPaths.GetConsoleApp1File("ConsoleApp1.sln")); // when const int startLine = 3; const int endLine = 5; diff --git a/src/Cody.VisualStudio.Tests/TestsBase.cs b/src/Cody.VisualStudio.Tests/TestsBase.cs index e8904a2..67620d6 100644 --- a/src/Cody.VisualStudio.Tests/TestsBase.cs +++ b/src/Cody.VisualStudio.Tests/TestsBase.cs @@ -17,7 +17,7 @@ public abstract class TestsBase: ITestLogger { private readonly ITestOutputHelper _logger; - protected CodyPackage CodyPackage; + protected static CodyPackage CodyPackage; protected TestsBase(ITestOutputHelper output) { @@ -55,6 +55,8 @@ protected async Task OpenSolution(string path) protected async Task OpenDocument(string path, int? selectLineStart = null, int? selectLineEnd = null) { + WriteLog($"CodyPackage: {CodyPackage} "); + VsShellUtilities.OpenDocument(CodyPackage, path, Guid.Empty, out _, out _, out IVsWindowFrame frame); frame.Show();