Skip to content

Commit 2d37ef2

Browse files
Disable flaky test (6766) (#6826)
* Disable flaky test (6766) * lint Co-authored-by: Stephen Weatherford <Stephen.Weatherford.com>
1 parent 76684d4 commit 2d37ef2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/vscode-bicep/src/test/e2e/emptyConfigFileSnippets.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ import vscode, {
1212
import path from "path";
1313
import fse from "fs-extra";
1414
import {
15-
executeAcceptSelectedSuggestion,
1615
executeCloseAllEditors,
1716
executeCompletionItemProvider,
18-
executeSelectNextSuggestion,
1917
} from "./commands";
2018
import {} from "fs";
2119
import { createUniqueTempFolder } from "../utils/createUniqueTempFolder";
@@ -74,18 +72,20 @@ describe("empty config file snippets", (): void => {
7472
normalizeLineEndings(expectedAfterInsertion)
7573
);
7674

77-
// Verify that the snippet placed VS Code into an "insertion" state with the dropdown for the first rule open to show
78-
// the available diagnostic levels (the current one should be "warning").
79-
// Verify this by moving down to the next suggestion ("off") and selecting it
80-
const expectedAfterSelectingOffInsteadOfWarning =
81-
expectedAfterInsertion.replace(/warning/, "off");
82-
await executeSelectNextSuggestion();
83-
await executeAcceptSelectedSuggestion();
84-
const textAfterSelectingOffInsteadOfWarningtext =
85-
editor.document.getText();
86-
expect(
87-
normalizeLineEndings(textAfterSelectingOffInsteadOfWarningtext)
88-
).toBe(normalizeLineEndings(expectedAfterSelectingOffInsteadOfWarning));
75+
// TODO: DISABLED (FLAKY) - see https://github.com/Azure/bicep/issues/6766
76+
//
77+
// // Verify that the snippet placed VS Code into an "insertion" state with the dropdown for the first rule open to show
78+
// // the available diagnostic levels (the current one should be "warning").
79+
// // Verify this by moving down to the next suggestion ("off") and selecting it
80+
// const expectedAfterSelectingOffInsteadOfWarning =
81+
// expectedAfterInsertion.replace(/warning/, "off");
82+
// await executeSelectNextSuggestion();
83+
// await executeAcceptSelectedSuggestion();
84+
// const textAfterSelectingOffInsteadOfWarningtext =
85+
// editor.document.getText();
86+
// expect(
87+
// normalizeLineEndings(textAfterSelectingOffInsteadOfWarningtext)
88+
// ).toBe(normalizeLineEndings(expectedAfterSelectingOffInsteadOfWarning));
8989
} finally {
9090
fse.rmdirSync(tempFolder, {
9191
recursive: true,

0 commit comments

Comments
 (0)