@@ -4,7 +4,7 @@ import { exampleWorkspacePath, exampleWorkspaceOutPath, copyFile, wait } from ".
44import { isQuartoDoc } from "../core/doc" ;
55import { extension } from "./extension" ;
66
7- const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1600 ;
7+ const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1700 ;
88
99suite ( "Quarto basics" , function ( ) {
1010 // Before we run any tests, we should copy any files that get edited in the tests to file under `exampleWorkspaceOutPath`
@@ -23,12 +23,11 @@ suite("Quarto basics", function () {
2323
2424 // Note: the following tests may be flaky. They rely on waiting estimated amounts of time for commands to complete.
2525 test ( "Can edit in visual mode" , async function ( ) {
26- // don't run this in CI for now because we haven't figured out how to get the LSP to start
27- if ( process . env [ 'CI' ] ) this . skip ( ) ;
28-
2926 const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
3027 const editor = await vscode . window . showTextDocument ( doc ) ;
3128
29+ await extension ( ) . activate ( ) ;
30+
3231 // manually confirm visual mode so dialogue pop-up doesn't show because dialogues cause test errors
3332 // and switch to visual editor
3433 await vscode . commands . executeCommand ( "quarto.test_setkVisualModeConfirmedTrue" ) ;
@@ -42,12 +41,11 @@ suite("Quarto basics", function () {
4241 // test. That's okay for this test, but could cause issues if you expect a qmd to look how it
4342 // does in `/examples`.
4443 test ( "Roundtrip doesn't change hello.qmd" , async function ( ) {
45- // don't run this in CI for now because we haven't figured out how to get the LSP to start
46- if ( process . env [ 'CI' ] ) this . skip ( ) ;
47-
4844 const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
4945 const editor = await vscode . window . showTextDocument ( doc ) ;
5046
47+ await extension ( ) . activate ( ) ;
48+
5149 const docTextBefore = doc . getText ( ) ;
5250
5351 // switch to visual editor and back
@@ -59,6 +57,6 @@ suite("Quarto basics", function () {
5957 await wait ( 300 ) ;
6058
6159 const docTextAfter = doc . getText ( ) ;
62- assert . ok ( docTextBefore === docTextAfter ) ;
60+ assert . ok ( docTextBefore === docTextAfter , docTextAfter ) ;
6361 } ) ;
6462} ) ;
0 commit comments