Skip to content

Commit 333cdb5

Browse files
committed
Disable test skipping in CI to diagnose issue
1 parent da0a506 commit 333cdb5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

apps/vscode/.vscode-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig([
55
files: 'test-out/*.test.js',
66
workspaceFolder: 'src/test/examples',
77
mocha: {
8-
timeout: 3000,
8+
timeout: 5000,
99
},
1010
},
1111
]);

apps/vscode/src/test/quartoDoc.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { exampleWorkspacePath, exampleWorkspaceOutPath, copyFile, wait } from ".
44
import { isQuartoDoc } from "../core/doc";
55
import { extension } from "./extension";
66

7-
const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1600;
7+
const APPROX_TIME_TO_OPEN_VISUAL_EDITOR = 1700;
88

99
suite("Quarto basics", function () {
1010
// Before we run any tests, we should copy any files that get edited in the tests to file under `exampleWorkspaceOutPath`
@@ -24,11 +24,13 @@ suite("Quarto basics", function () {
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 () {
2626
// 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();
27+
// if (process.env['CI']) this.skip();
2828

2929
const doc = await vscode.workspace.openTextDocument(exampleWorkspaceOutPath("hello.qmd"));
3030
const editor = await vscode.window.showTextDocument(doc);
3131

32+
await extension().activate();
33+
3234
// manually confirm visual mode so dialogue pop-up doesn't show because dialogues cause test errors
3335
// and switch to visual editor
3436
await vscode.commands.executeCommand("quarto.test_setkVisualModeConfirmedTrue");
@@ -43,11 +45,13 @@ suite("Quarto basics", function () {
4345
// does in `/examples`.
4446
test("Roundtrip doesn't change hello.qmd", async function () {
4547
// 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();
48+
// if (process.env['CI']) this.skip();
4749

4850
const doc = await vscode.workspace.openTextDocument(exampleWorkspaceOutPath("hello.qmd"));
4951
const editor = await vscode.window.showTextDocument(doc);
5052

53+
await extension().activate();
54+
5155
const docTextBefore = doc.getText();
5256

5357
// switch to visual editor and back
@@ -59,6 +63,6 @@ suite("Quarto basics", function () {
5963
await wait(300);
6064

6165
const docTextAfter = doc.getText();
62-
assert.ok(docTextBefore === docTextAfter);
66+
assert.ok(docTextBefore === docTextAfter, docTextAfter);
6367
});
6468
});

0 commit comments

Comments
 (0)