Skip to content

Commit 72e1fa7

Browse files
authored
test: use search app for bot project (#14227)
1 parent f3d61fa commit 72e1fa7

File tree

68 files changed

+514
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+514
-92
lines changed

packages/tests/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"@azure/msal-node": "2.6.6",
7575
"@microsoft/m365agentstoolkit-cli": "workspace:*",
7676
"@microsoft/teamsfx-api": "workspace:*",
77+
"@types/js-yaml": "^4.0.0",
7778
"@types/semver": "^7.3.8",
7879
"adm-zip": "0.5.10",
7980
"axios": "^1.6.8",
@@ -85,7 +86,8 @@
8586
"querystring": "^0.2.1",
8687
"semver": "^7.5.2",
8788
"strip-bom": "4",
88-
"yaml": "^2.2.2"
89+
"yaml": "^2.2.2",
90+
"js-yaml": "^4.1.0"
8991
},
9092
"optionalDependencies": {
9193
"keytar": "^7.7.0"

packages/tests/pnpm-lock.yaml

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tests/src/ui-test/localdebug/localdebug-aichat-bot-azureopenai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ describe("Local Debug Tests", function () {
8484
teamsAppId,
8585
Env.username,
8686
Env.password,
87-
{ projectPath: projectPath, env: "local" }
87+
{
88+
projectPath: projectPath,
89+
teamsAppName: localDebugTestContext.appName,
90+
env: "local",
91+
searchApp: true,
92+
}
8893
);
8994
await localDebugTestContext.validateLocalStateForBot();
9095
if (isRealKey) {

packages/tests/src/ui-test/localdebug/localdebug-aichat-bot-openai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ describe("Local Debug Tests", function () {
7373
teamsAppId,
7474
Env.username,
7575
Env.password,
76-
{ projectPath: projectPath, env: "local" }
76+
{
77+
projectPath: projectPath,
78+
teamsAppName: localDebugTestContext.appName,
79+
env: "local",
80+
searchApp: true,
81+
}
7782
);
7883
await localDebugTestContext.validateLocalStateForBot();
7984
if (isRealKey) {

packages/tests/src/ui-test/localdebug/localdebug-aichat-bot-py-azureopenai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ describe("Local Debug Tests", function () {
9393
teamsAppId,
9494
Env.username,
9595
Env.password,
96-
{ projectPath: projectPath, env: "local" }
96+
{
97+
projectPath: projectPath,
98+
teamsAppName: localDebugTestContext.appName,
99+
env: "local",
100+
searchApp: true,
101+
}
97102
);
98103
await localDebugTestContext.validateLocalStateForBot();
99104
if (isRealKey) {

packages/tests/src/ui-test/localdebug/localdebug-aichat-bot-py-openai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ describe("Local Debug Tests", function () {
7979
teamsAppId,
8080
Env.username,
8181
Env.password,
82-
{ projectPath: projectPath, env: "local" }
82+
{
83+
projectPath: projectPath,
84+
teamsAppName: localDebugTestContext.appName,
85+
env: "local",
86+
searchApp: true,
87+
}
8388
);
8489
await localDebugTestContext.validateLocalStateForBot();
8590
if (isRealKey) {

packages/tests/src/ui-test/localdebug/localdebug-aichat-bot-ts-azureopenai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ describe("Local Debug Tests", function () {
8787
teamsAppId,
8888
Env.username,
8989
Env.password,
90-
{ projectPath: projectPath, env: "local" }
90+
{
91+
projectPath: projectPath,
92+
teamsAppName: localDebugTestContext.appName,
93+
env: "local",
94+
searchApp: true,
95+
}
9196
);
9297
await localDebugTestContext.validateLocalStateForBot();
9398
if (isRealKey) {

packages/tests/src/ui-test/localdebug/localdebug-aichat-bot-ts-openai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ describe("Local Debug Tests", function () {
7373
teamsAppId,
7474
Env.username,
7575
Env.password,
76-
{ projectPath: projectPath, env: "local" }
76+
{
77+
projectPath: projectPath,
78+
teamsAppName: localDebugTestContext.appName,
79+
env: "local",
80+
searchApp: true,
81+
}
7782
);
7883
await localDebugTestContext.validateLocalStateForBot();
7984
if (isRealKey) {

packages/tests/src/ui-test/localdebug/localdebug-bot-twice.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ describe("Local Debug Tests", function () {
129129
teamsAppId,
130130
Env.username,
131131
Env.password,
132-
{ projectPath: projectPath, env: "local" }
132+
{
133+
projectPath: projectPath,
134+
teamsAppName: localDebugTestContext.appName,
135+
env: "local",
136+
searchApp: true,
137+
}
133138
);
134139
await localDebugTestContext.validateLocalStateForBot();
135140
await validateEchoBot(page);

packages/tests/src/ui-test/localdebug/localdebug-chatdata-azureai-js-azureopenai.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ describe("Local Debug Tests", function () {
174174
teamsAppId,
175175
Env.username,
176176
Env.password,
177-
{ projectPath: projectPath, env: "local" }
177+
{
178+
projectPath: projectPath,
179+
teamsAppName: localDebugTestContext.appName,
180+
env: "local",
181+
searchApp: true,
182+
}
178183
);
179184
await localDebugTestContext.validateLocalStateForBot();
180185
if (isRealKey) {

0 commit comments

Comments
 (0)