-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan_Chen
committed
Apr 29, 2024
1 parent
0adff00
commit 666e0a6
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/tests/src/ui-test/samples/sample-remotedebug-bot-sso-docker.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
/** | ||
* @author Ivan Chen <[email protected]> | ||
*/ | ||
|
||
import { Page } from "playwright"; | ||
import { TemplateProject, LocalDebugTaskLabel } from "../../utils/constants"; | ||
import { validateBot } from "../../utils/playwrightOperation"; | ||
import { CaseFactory } from "./sampleCaseFactory"; | ||
import { Env } from "../../utils/env"; | ||
|
||
class BotSSODockerTestCase extends CaseFactory { | ||
override async onValidate(page: Page): Promise<void> { | ||
return await validateBot(page, { | ||
botCommand: "show", | ||
expected: Env.displayName, | ||
}); | ||
} | ||
} | ||
|
||
new BotSSODockerTestCase( | ||
TemplateProject.BotSSODocker, | ||
27852471, | ||
"[email protected]", | ||
"dev" | ||
).test(); |