-
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.
test: add docker bot sso sample (#11504)
* test: add docker sample --------- Co-authored-by: Ivan_Chen <[email protected]>
- Loading branch information
1 parent
1e362ee
commit f43dc91
Showing
11 changed files
with
274 additions
and
56 deletions.
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
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
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
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
35 changes: 35 additions & 0 deletions
35
packages/tests/src/ui-test/samples/sample-localdebug-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,35 @@ | ||
// 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, | ||
}); | ||
} | ||
public override async onCliValidate(page: Page): Promise<void> { | ||
return await validateBot(page, { | ||
botCommand: "show", | ||
expected: Env.displayName, | ||
}); | ||
} | ||
} | ||
|
||
new BotSSODockerTestCase( | ||
TemplateProject.BotSSODocker, | ||
26577671, | ||
"[email protected]", | ||
"local", | ||
[LocalDebugTaskLabel.StartLocalTunnel, LocalDebugTaskLabel.DockerRun] | ||
).test(); |
30 changes: 30 additions & 0 deletions
30
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,30 @@ | ||
// 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", | ||
undefined, | ||
{ container: true } | ||
).test(); |
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
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
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
Oops, something went wrong.