Skip to content

Commit

Permalink
Increase timeouts for "Import from Git" UI test
Browse files Browse the repository at this point in the history
Signed-off-by: David Thompson <davthomp@redhat.com>
  • Loading branch information
datho7561 committed May 16, 2023
1 parent a0148e9 commit 1fce587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/ui/public-ui-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { checkFocusOnCommands } from './suite/focusOn';
import { testImportFromGit } from './suite/import-from-git';
import { checkOpenshiftView } from './suite/openshift';

describe('Extension public-facing UI tests', () => {
describe('Extension public-facing UI tests', function() {
checkExtension();
checkOpenshiftView();
checkAboutCommand();
Expand Down
6 changes: 4 additions & 2 deletions test/ui/suite/import-from-git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ export function testImportFromGit() {
});

after('remove temp dir', function () {
this.timeout(10_000);
if (fs.existsSync(tempDir)) {
fs.removeSync(tempDir);
}
});

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

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

});
}

0 comments on commit 1fce587

Please sign in to comment.