Skip to content

Commit

Permalink
test: update creating SPFx project
Browse files Browse the repository at this point in the history
  • Loading branch information
hellyzh committed Apr 28, 2024
1 parent 5d3479f commit 8a82e5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ describe("New project Tests", function () {
// if exist click it
await input.selectQuickPick(CreateProjectQuestion.Tab);
await driver.sleep(Timeout.input);
// Choose Tab(SPFx)
await input.selectQuickPick("SPFx");
// await input.selectQuickPick("SPFx");
await input.setText("SPFx");
await input.confirm();
await driver.sleep(Timeout.input);
await input.selectQuickPick(CreateProjectQuestion.CreateNewSpfxSolution);
// Wait for Node version check
Expand Down
16 changes: 11 additions & 5 deletions packages/tests/src/utils/vscodeOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,9 @@ export async function createNewProject(
scaffoldingTime = scaffoldingSpfxTime;
await input.selectQuickPick(CreateProjectQuestion.Tab);
await driver.sleep(Timeout.input);
// await input.selectQuickPick("SPFx");
await input.setText("SPFx");
await input.selectQuickPick("SPFx");
await input.confirm();
await driver.sleep(Timeout.input);
await input.selectQuickPick(CreateProjectQuestion.CreateNewSpfxSolution);
// Wait for Node version check
Expand All @@ -690,8 +691,9 @@ export async function createNewProject(
// Choose Tab(SPFx)
await input.selectQuickPick(CreateProjectQuestion.Tab);
await driver.sleep(Timeout.input);
// await input.selectQuickPick("SPFx");
await input.setText("SPFx");
await input.selectQuickPick("SPFx");
await input.confirm();
await driver.sleep(Timeout.input);
await input.selectQuickPick(CreateProjectQuestion.CreateNewSpfxSolution);
// Wait for Node version check
Expand All @@ -715,8 +717,9 @@ export async function createNewProject(
// Choose Tab(SPFx)
await input.selectQuickPick(CreateProjectQuestion.Tab);
await driver.sleep(Timeout.input);
// await input.selectQuickPick("SPFx");
await input.setText("SPFx");
await input.selectQuickPick("SPFx");
await input.confirm();
await driver.sleep(Timeout.input);
await input.selectQuickPick(CreateProjectQuestion.CreateNewSpfxSolution);
// Wait for Node version check
Expand All @@ -738,8 +741,9 @@ export async function createNewProject(
case "gspfxreact": {
await input.selectQuickPick(CreateProjectQuestion.Tab);
await driver.sleep(Timeout.input);
// await input.selectQuickPick("SPFx");
await input.setText("SPFx");
await input.selectQuickPick("SPFx");
await input.confirm();
await driver.sleep(Timeout.input);
await input.selectQuickPick(CreateProjectQuestion.CreateNewSpfxSolution);
// Wait for Node version check
Expand All @@ -761,7 +765,9 @@ export async function createNewProject(
case "gspfxnone": {
await input.selectQuickPick(CreateProjectQuestion.Tab);
await driver.sleep(Timeout.input);
await input.selectQuickPick("SPFx");
// await input.selectQuickPick("SPFx");
await input.setText("SPFx");
await input.confirm();
await driver.sleep(Timeout.input);
await input.selectQuickPick(CreateProjectQuestion.CreateNewSpfxSolution);
// Wait for Node version check
Expand Down

0 comments on commit 8a82e5e

Please sign in to comment.