Skip to content

Commit

Permalink
fix the ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
testforstephen committed Nov 28, 2023
1 parent 7dfb8dd commit dfe040d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ui/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ describe("Command Tests", function() {

it("Test java.view.package.newJavaClass", async function() {
let inputBox = await createJavaResource();
const javaClassQuickPick = await inputBox.findQuickPick("Java Class");
const javaClassQuickPick = await inputBox.findQuickPick("$(symbol-class) Class");
await javaClassQuickPick!.click();
assert.ok(await inputBox.getPlaceHolder() === "Choose a source folder", `InputBox "Choose a source folder" should appear`);
const quickPick = await inputBox.findQuickPick("src/main/java");
assert.ok(quickPick, `Quickpick item "src/main/java" should be found`);
await quickPick!.click();
inputBox = await InputBox.create();
assert.ok(await inputBox.getPlaceHolder() === "Enter the Java file name for class/interface/enum/record/@interface", `InputBox "Enter the Java file name" should appear`);
assert.ok(await inputBox.getPlaceHolder() === "Input the class name", `InputBox "Input the class name" should appear`);
await inputBox.setText("App2");
await inputBox.confirm();
await sleep(1000);
Expand Down

0 comments on commit dfe040d

Please sign in to comment.