forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputPanel.ts
More file actions
18 lines (13 loc) · 718 Bytes
/
outputPanel.ts
File metadata and controls
18 lines (13 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
// tslint:disable: no-invalid-this
import { Then } from 'cucumber';
import '../helpers/extensions';
type TextOrWordOrContent = 'text' | 'word' | 'message' | 'content';
Then('the {word} {string} will be displayed in the output panel', async function(_textOrMessage: TextOrWordOrContent, text: string) {
await this.app.panels.waitUtilContent(text);
});
Then('the {word} {string} will be displayed in the output panel within {int} seconds', async function(_textOrMessage: TextOrWordOrContent, text: string, timeoutSeconds: number) {
await this.app.panels.waitUtilContent(text, timeoutSeconds);
});