Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update local debug task result #12508

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading