Skip to content

Commit

Permalink
debug failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik authored Nov 30, 2023
1 parent 40f84c7 commit 2bcd50a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test/e2e/tests/commands/clean.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import assert from "assert";
import { existsSync, mkdirSync } from "fs";
import path from "path";
import * as vscode from "vscode";
import { waitForUI } from "../../helpers/editor";
import { sleep } from "../../helpers/sleep";
import { getRootPath } from "../../helpers/workspace";

Expand All @@ -22,19 +21,27 @@ suite("task - clean", function () {
await vscode.commands.executeCommand("workbench.action.tasks.runTask", {
task: "hardhat: clean main",
});
await waitForUI();

await sleep(1000);
console.log("OmarTawfik: debug point: 1");

Check warning on line 25 in test/e2e/tests/commands/clean.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Unexpected console statement
await sleep(5000);
console.log("OmarTawfik: debug point: 2");

Check warning on line 27 in test/e2e/tests/commands/clean.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Unexpected console statement

await vscode.commands.executeCommand(
"workbench.action.acceptSelectedQuickOpenItem"
);
await sleep(1000);

console.log("OmarTawfik: debug point: 3");

Check warning on line 33 in test/e2e/tests/commands/clean.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Unexpected console statement
await sleep(5000);
console.log("OmarTawfik: debug point: 4");

Check warning on line 35 in test/e2e/tests/commands/clean.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Unexpected console statement

await vscode.commands.executeCommand(
"workbench.action.acceptSelectedQuickOpenItem"
);

console.log("OmarTawfik: debug point: 5");

Check warning on line 41 in test/e2e/tests/commands/clean.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Unexpected console statement
await sleep(5000);
console.log("OmarTawfik: debug point: 6");

Check warning on line 43 in test/e2e/tests/commands/clean.test.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Unexpected console statement

// Wait for task to finish
await new Promise((resolve) => vscode.tasks.onDidEndTask(resolve));

Expand Down

0 comments on commit 2bcd50a

Please sign in to comment.