Skip to content

Commit c0eb0be

Browse files
ayachensiyuanIvan Chen (Centific Technologies Inc)
andauthored
test: update test cases (#15417)
* test: update test cases --------- Co-authored-by: Ivan Chen (Centific Technologies Inc) <v-ivanchen@microsoft.com>
1 parent deaab9a commit c0eb0be

16 files changed

+596
-2073
lines changed

packages/tests/scripts/sampleCaseCreate.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const ubuntu_22 = [
1515
"sample-todo-list-sql",
1616
"sample-hello-world-tab-docker",
1717
"sample-todo-list-with-m365",
18-
"sample-intelligent-data-chart",
1918
"sample-dice-roller",
2019
"sample-todo-list-with-spfx",
2120
"sample-spfx-productivity-dashboard",
@@ -51,7 +50,6 @@ const sampleRecord: any = {
5150
[TemplateProjectFolder.TabSSOApimProxy]: "sample-sso-tab-via-apim-proxy",
5251
[TemplateProjectFolder.LargeScaleBot]: "sample-large-scale-notification",
5352
[TemplateProjectFolder.CopilotConnectorBot]: "sample-copilot-connector-bot",
54-
[TemplateProjectFolder.IntelligentDataChart]: "sample-intelligent-data-chart",
5553
[TemplateProjectFolder.BotSSODocker]: "sample-bot-sso-docker",
5654
[TemplateProjectFolder.HelloWorldTabDocker]: "sample-hello-world-tab-docker",
5755
"outlook-add-in-set-signature": "sample-outlook-signature",

packages/tests/src/e2e/samples/ProvisionIntelligentDataChart.tests.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/tests/src/unused-ui-test/samples/sample-intelligent-data-chart.test.ts

Lines changed: 0 additions & 124 deletions
This file was deleted.

packages/tests/src/utils/constants.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export enum TemplateProject {
6464
HelloWorldTabDocker = "Containerized Hello World Tab with Backend",
6565
FoodCatalog = "Ingest Custom API Data into Microsoft 365 with a Microsoft Copilot Connector",
6666
RedditLink = "Format Reddit Link into Adaptive Card",
67-
IntelligentDataChart = "Intelligent Data Chart Generator",
6867
}
6968

7069
export enum TemplateProjectFolder {
@@ -101,7 +100,6 @@ export enum TemplateProjectFolder {
101100
HelloWorldTabDocker = "hello-world-tab-docker",
102101
FoodCatalog = "nodejs-typescript-food-catalog",
103102
RedditLink = "nodejs",
104-
IntelligentDataChart = "intelligent-data-chart-generator",
105103
// v2 only
106104
Deeplinking = "deep-linking-hello-world-tab-without-sso-M365",
107105
}
@@ -145,8 +143,6 @@ export const sampleProjectMap: Record<TemplateProject, TemplateProjectFolder> =
145143
TemplateProjectFolder.HelloWorldTabDocker,
146144
[TemplateProject.FoodCatalog]: TemplateProjectFolder.FoodCatalog,
147145
[TemplateProject.RedditLink]: TemplateProjectFolder.RedditLink,
148-
[TemplateProject.IntelligentDataChart]:
149-
TemplateProjectFolder.IntelligentDataChart,
150146
};
151147

152148
export enum Resource {

packages/tests/src/utils/playwrightOperation.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ export const debugInitMap: Record<TemplateProject, () => Promise<void>> = {
114114
[TemplateProject.RedditLink]: async () => {
115115
await startDebugging("Debug in Teams (Chrome)");
116116
},
117-
[TemplateProject.IntelligentDataChart]: async () => {
118-
await startDebugging("Debug (Chrome)");
119-
},
120117
};
121118

122119
export async function initPage(
@@ -3467,46 +3464,3 @@ export async function validateMeeting(page: Page, name: string) {
34673464
throw error;
34683465
}
34693466
}
3470-
3471-
export async function validateIntelligentDataChart(
3472-
page: Page,
3473-
isRealKey: boolean
3474-
) {
3475-
try {
3476-
console.log("start to verify Intelligent Data Chart");
3477-
const frameElementHandle = await page.waitForSelector(
3478-
`iframe[name="embedded-page-container"]`
3479-
);
3480-
const frame = await frameElementHandle?.contentFrame();
3481-
await frame?.waitForSelector(
3482-
"span:has-text('Intelligent Data Chart Generator')"
3483-
);
3484-
if (isRealKey) {
3485-
console.log("fill in: Top 20 selling products");
3486-
const textarea = await frame?.waitForSelector(
3487-
".prompt-textarea textarea"
3488-
);
3489-
await RetryHandler.retry(async () => {
3490-
await textarea?.selectText();
3491-
await page.waitForTimeout(Timeout.shortTimeWait);
3492-
await textarea?.press("Backspace");
3493-
await page.waitForTimeout(Timeout.shortTimeWait);
3494-
await textarea?.fill("Top 20 selling products");
3495-
await page.waitForTimeout(Timeout.shortTimeWait);
3496-
const searchbtn = await frame?.waitForSelector(
3497-
".prompt-textarea button"
3498-
);
3499-
await searchbtn?.click();
3500-
await page.waitForTimeout(Timeout.shortTimeLoading);
3501-
// TODO: verify the chart
3502-
}, 5);
3503-
}
3504-
console.log("Intelligent Data Chart loaded successfully");
3505-
} catch (error) {
3506-
await page.screenshot({
3507-
path: getPlaywrightScreenshotPath("error"),
3508-
fullPage: true,
3509-
});
3510-
throw error;
3511-
}
3512-
}

0 commit comments

Comments
 (0)