@@ -4,7 +4,7 @@ import { exampleWorkspacePath, exampleWorkspaceOutPath, copyFile, wait } from ".
4
4
import { isQuartoDoc } from "../core/doc" ;
5
5
import { extension } from "./extension" ;
6
6
7
- const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1600 ;
7
+ const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1700 ;
8
8
9
9
suite ( "Quarto basics" , function ( ) {
10
10
// 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 () {
23
23
24
24
// Note: the following tests may be flaky. They rely on waiting estimated amounts of time for commands to complete.
25
25
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
-
29
26
const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
30
27
const editor = await vscode . window . showTextDocument ( doc ) ;
31
28
29
+ await extension ( ) . activate ( ) ;
30
+
32
31
// manually confirm visual mode so dialogue pop-up doesn't show because dialogues cause test errors
33
32
// and switch to visual editor
34
33
await vscode . commands . executeCommand ( "quarto.test_setkVisualModeConfirmedTrue" ) ;
@@ -42,12 +41,11 @@ suite("Quarto basics", function () {
42
41
// test. That's okay for this test, but could cause issues if you expect a qmd to look how it
43
42
// does in `/examples`.
44
43
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
-
48
44
const doc = await vscode . workspace . openTextDocument ( exampleWorkspaceOutPath ( "hello.qmd" ) ) ;
49
45
const editor = await vscode . window . showTextDocument ( doc ) ;
50
46
47
+ await extension ( ) . activate ( ) ;
48
+
51
49
const docTextBefore = doc . getText ( ) ;
52
50
53
51
// switch to visual editor and back
@@ -59,6 +57,6 @@ suite("Quarto basics", function () {
59
57
await wait ( 300 ) ;
60
58
61
59
const docTextAfter = doc . getText ( ) ;
62
- assert . ok ( docTextBefore === docTextAfter ) ;
60
+ assert . ok ( docTextBefore === docTextAfter , docTextAfter ) ;
63
61
} ) ;
64
62
} ) ;
0 commit comments