Skip to content

Commit 3a18ed6

Browse files
datho7561rgrunber
authored andcommitted
Increase timeouts for "Import from Git" UI test
Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent a0148e9 commit 3a18ed6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/ui/public-ui-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { checkFocusOnCommands } from './suite/focusOn';
1010
import { testImportFromGit } from './suite/import-from-git';
1111
import { checkOpenshiftView } from './suite/openshift';
1212

13-
describe('Extension public-facing UI tests', () => {
13+
describe('Extension public-facing UI tests', function() {
1414
checkExtension();
1515
checkOpenshiftView();
1616
checkAboutCommand();

test/ui/suite/import-from-git.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ export function testImportFromGit() {
3737
});
3838

3939
after('remove temp dir', function () {
40+
this.timeout(10_000);
4041
if (fs.existsSync(tempDir)) {
4142
fs.removeSync(tempDir);
4243
}
4344
});
4445

4546
it('Import project from git', async function () {
47+
this.timeout(30_000);
4648
await editorView.closeAllEditors();
4749
const buttons: WelcomeContentButton[] = await welcome.getButtons();
4850
let importButton: WelcomeContentButton;
@@ -93,9 +95,9 @@ export function testImportFromGit() {
9395
await webview.switchBack(); // END WEBVIEW CODE
9496

9597
const devfile: string = path.join(tempDir, 'lemminx', 'devfile.yaml');
96-
await notificationExists('Component \'lemminx-comp\' successfully created. Perform actions on it from Components View.', editorView.getDriver(), 3000);
98+
await notificationExists('Component \'lemminx-comp\' successfully created. Perform actions on it from Components View.', editorView.getDriver(), 10_000);
9799
expect(fs.existsSync(devfile)).is.true;
98-
}).timeout(20000);
100+
});
99101

100102
});
101103
}

0 commit comments

Comments
 (0)