Skip to content

Commit

Permalink
Playing with timeouts
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Grossmann <[email protected]>
  • Loading branch information
Lukas Grossmann committed Nov 6, 2023
1 parent 6c2f292 commit df1fcd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"max-classes-per-file": [0],
"no-alert": 2,
"no-caller": 2,
//"no-console": 2,
"no-console": 2,
"no-constant-condition": 2,
"no-debugger": 2,
"no-else-return": ["error"],
Expand Down
17 changes: 2 additions & 15 deletions test/ui/suite/createComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,24 @@ export function testCreateComponent(path: string) {

it('Create component from git URL', async function test() {
this.timeout(25_000);
console.log('1')

await button.click();
console.log('2')
await new Promise((res) => { setTimeout(res, 3_000); });
console.log('3')

const createCompView = await initializeEditor();
await createCompView.createComponentFromGit();
console.log('4')

const gitPage = new GitProjectPage();
await gitPage.initializeEditor();
console.log('5')
await gitPage.insertGitLink('https://github.com/odo-devfiles/nodejs-ex');
console.log('6')
await gitPage.clickNextButton();
console.log('7')
await new Promise((res) => { setTimeout(res, 1_500)});
console.log('8')
await gitPage.clickContinueButton();
console.log('9')

await createComponent(createCompView)

console.log('10')

componentName = 'node-js-runtime';
expect(await section.findItem(componentName)).to.be.not.undefined;
console.log('11')
});

it('Create component from local folder');
Expand Down Expand Up @@ -128,12 +118,9 @@ export function testCreateComponent(path: string) {

async function createComponent(createCompView: CreateComponentWebView): Promise<void> {
const page = new SetNameAndFolderPage(createCompView.editorName);
console.log('a')
await page.initializeEditor();
await page.insertProjectFolderPath(path);
console.log('b')
await page.clickCreateComponentButton();
console.log('c')
await new Promise((res => {setTimeout(res, 6_000)}))
}

Expand Down

0 comments on commit df1fcd5

Please sign in to comment.