Re-enable flaky auto replies tests

Need a new playwright trace from a failure to be able to diagnose

Part of #139083
This commit is contained in:
Daniel Imms 2021-12-16 11:36:48 -08:00
parent 927096c078
commit d33e3d2fbc

View File

@ -4,7 +4,6 @@
*--------------------------------------------------------------------------------------------*/
import { Application, Terminal, SettingsEditor } from '../../../../automation';
import { itSkipOnFail } from '../../utils';
export function setup() {
describe('Terminal Input', () => {
@ -25,13 +24,13 @@ export function setup() {
await terminal.runCommandInTerminal(`"\r${text}`, true);
}
itSkipOnFail('should automatically reply to default "Terminate batch job (Y/N)"', async () => {
it('should automatically reply to default "Terminate batch job (Y/N)"', async () => {
await terminal.createTerminal();
await writeTextForAutoReply('Terminate batch job (Y/N)?');
await terminal.waitForTerminalText(buffer => buffer.some(line => line.includes('Terminate batch job (Y/N)?Y')));
});
itSkipOnFail('should automatically reply to a custom entry', async () => {
it('should automatically reply to a custom entry', async () => {
await settingsEditor.addUserSetting('terminal.integrated.autoReplies', '{ "foo": "bar" }');
await terminal.createTerminal();
await writeTextForAutoReply('foo');