Skip to content

Commit

Permalink
test: update local debug task result (#12508)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellyzh authored Oct 11, 2024
1 parent 89938a6 commit a3f85d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
Timeout,
LocalDebugTaskLabel,
DebugItemSelect,
LocalDebugTaskResult,
} from "../../utils/constants";
import { Env } from "../../utils/env";
import { it } from "../../utils/it";
Expand Down Expand Up @@ -49,13 +50,13 @@ describe("Local Debug Tests", function () {
localDebugTestContext.testRootFolder,
localDebugTestContext.appName
);
validateFileExist(projectPath, "src/index.tsx");
validateFileExist(projectPath, "src/main.tsx");

await startDebugging(DebugItemSelect.DebugInTeamsUsingChrome);
await waitForTerminal(
LocalDebugTaskLabel.StartFrontend,
// [BUG] warning error message block the frontend validation
"Compiled with warnings"
LocalDebugTaskResult.FrontendReady
);

const teamsAppId = await localDebugTestContext.getTeamsAppId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
Timeout,
LocalDebugTaskLabel,
DebugItemSelect,
LocalDebugTaskResult,
} from "../../utils/constants";
import { Env } from "../../utils/env";
import { it } from "../../utils/it";
Expand Down Expand Up @@ -49,14 +50,14 @@ describe("Local Debug Tests", function () {
localDebugTestContext.testRootFolder,
localDebugTestContext.appName
);
validateFileExist(projectPath, "src/index.jsx");
validateFileExist(projectPath, "src/main.jsx");

await startDebugging(DebugItemSelect.DebugInTeamsUsingChrome);

await waitForTerminal(
LocalDebugTaskLabel.StartFrontend,
// [BUG] warning error message block the frontend validation
"Compiled with warnings"
LocalDebugTaskResult.FrontendReady
);

const teamsAppId = await localDebugTestContext.getTeamsAppId();
Expand Down
1 change: 1 addition & 0 deletions packages/tests/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export enum LocalDebugTaskLabel {

export class LocalDebugTaskResult {
static readonly FrontendSuccess = "Compiled successfully";
static readonly FrontendReady = "ready";
static readonly StartSuccess = "started successfully";
static readonly AzuriteSuccess = "Azurite Table service is successfully";
static readonly CompiledSuccess = "Found 0 errors";
Expand Down

0 comments on commit a3f85d3

Please sign in to comment.