Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Imms <2193314+Tyriar@users.noreply.github.com>2022-06-15 16:59:40 +0300
committerDaniel Imms <2193314+Tyriar@users.noreply.github.com>2022-06-15 16:59:40 +0300
commit1f5dc6a5729795f80b92f6de5a76d78462640662 (patch)
tree49f971aa93b71a08f18fe3935c69aa4d23acb45c /test
parent03be93691c2aaa77e2f5ec485a8b665cc29ad061 (diff)
Run shell integration tests 100 times in CI
Part of #150478
Diffstat (limited to 'test')
-rw-r--r--test/smoke/src/areas/terminal/terminal-shellIntegration.test.ts59
1 files changed, 30 insertions, 29 deletions
diff --git a/test/smoke/src/areas/terminal/terminal-shellIntegration.test.ts b/test/smoke/src/areas/terminal/terminal-shellIntegration.test.ts
index 47d624633f2..0bc30da5b58 100644
--- a/test/smoke/src/areas/terminal/terminal-shellIntegration.test.ts
+++ b/test/smoke/src/areas/terminal/terminal-shellIntegration.test.ts
@@ -28,38 +28,39 @@ export function setup() {
await terminal.runCommandWithValue(TerminalCommandIdWithValue.NewWithProfile, process.platform === 'win32' ? 'PowerShell' : 'bash');
}
- // TODO: These are currently flaky https://github.com/microsoft/vscode/issues/150478
- describe.skip('Shell integration', function () {
- describe('Decorations', function () {
- describe('Should show default icons', function () {
- it('Placeholder', async () => {
- await createShellIntegrationProfile();
- await terminal.assertCommandDecorations({ placeholder: 1, success: 0, error: 0 });
+ for (let i = 0; i < 100; i++) {
+ describe(`Shell integration ${i}`, function () {
+ describe('Decorations', function () {
+ describe('Should show default icons', function () {
+ it('Placeholder', async () => {
+ await createShellIntegrationProfile();
+ await terminal.assertCommandDecorations({ placeholder: 1, success: 0, error: 0 });
+ });
+ it('Success', async () => {
+ await createShellIntegrationProfile();
+ await terminal.runCommandInTerminal(`ls`);
+ await terminal.assertCommandDecorations({ placeholder: 1, success: 1, error: 0 });
+ });
+ it('Error', async () => {
+ await createShellIntegrationProfile();
+ await terminal.runCommandInTerminal(`fsdkfsjdlfksjdkf`);
+ await terminal.assertCommandDecorations({ placeholder: 1, success: 0, error: 1 });
+ });
});
- it('Success', async () => {
- await createShellIntegrationProfile();
- await terminal.runCommandInTerminal(`ls`);
- await terminal.assertCommandDecorations({ placeholder: 1, success: 1, error: 0 });
- });
- it('Error', async () => {
- await createShellIntegrationProfile();
- await terminal.runCommandInTerminal(`fsdkfsjdlfksjdkf`);
- await terminal.assertCommandDecorations({ placeholder: 1, success: 0, error: 1 });
- });
- });
- describe('Custom configuration', function () {
- it('Should update and show custom icons', async () => {
- await createShellIntegrationProfile();
- await terminal.assertCommandDecorations({ placeholder: 1, success: 0, error: 0 });
- await terminal.runCommandInTerminal(`ls`);
- await terminal.runCommandInTerminal(`fsdkfsjdlfksjdkf`);
- await settingsEditor.addUserSetting('terminal.integrated.shellIntegration.decorationIcon', '"zap"');
- await settingsEditor.addUserSetting('terminal.integrated.shellIntegration.decorationIconSuccess', '"zap"');
- await settingsEditor.addUserSetting('terminal.integrated.shellIntegration.decorationIconError', '"zap"');
- await terminal.assertCommandDecorations(undefined, { updatedIcon: "zap", count: 3 });
+ describe('Custom configuration', function () {
+ it('Should update and show custom icons', async () => {
+ await createShellIntegrationProfile();
+ await terminal.assertCommandDecorations({ placeholder: 1, success: 0, error: 0 });
+ await terminal.runCommandInTerminal(`ls`);
+ await terminal.runCommandInTerminal(`fsdkfsjdlfksjdkf`);
+ await settingsEditor.addUserSetting('terminal.integrated.shellIntegration.decorationIcon', '"zap"');
+ await settingsEditor.addUserSetting('terminal.integrated.shellIntegration.decorationIconSuccess', '"zap"');
+ await settingsEditor.addUserSetting('terminal.integrated.shellIntegration.decorationIconError', '"zap"');
+ await terminal.assertCommandDecorations(undefined, { updatedIcon: "zap", count: 3 });
+ });
});
});
});
- });
+ }
});
}