Skip to content

Commit 261ac1a

Browse files
committed
Move all fatModule test to use ESM harness and page-object
1 parent 61d6f98 commit 261ac1a

22 files changed

+62
-40
lines changed

__tests__/html2/simple/fatModule/adaptiveCards.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -17,6 +15,9 @@
1715
}
1816
</script>
1917
<script type="module">
18+
import '/test-harness.mjs';
19+
import '/test-page-object.mjs';
20+
2021
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
2122

2223
run(async function () {

__tests__/html2/simple/fatModule/esm.run/adaptiveCards.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -18,6 +16,9 @@
1816
}
1917
</script>
2018
<script type="module">
19+
import '/test-harness.mjs';
20+
import '/test-page-object.mjs';
21+
2122
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
2223

2324
run(async function () {

__tests__/html2/simple/fatModule/esm.run/simple.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -18,6 +16,9 @@
1816
}
1917
</script>
2018
<script type="module">
19+
import '/test-harness.mjs';
20+
import '/test-page-object.mjs';
21+
2122
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
2223

2324
run(async function () {

__tests__/html2/simple/fatModule/esm.run/supportPolymiddleware.reactDOMRender.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -20,6 +18,9 @@
2018
}
2119
</script>
2220
<script type="module">
21+
import '/test-harness.mjs';
22+
import '/test-page-object.mjs';
23+
2324
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
2425
import { useStyleOptions } from 'botframework-webchat/hook';
2526
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';

__tests__/html2/simple/fatModule/esm.run/supportPolymiddleware.reactDOMRender.withCreateRoot.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -20,6 +18,9 @@
2018
}
2119
</script>
2220
<script type="module">
21+
import '/test-harness.mjs';
22+
import '/test-page-object.mjs';
23+
2324
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
2425
import { useStyleOptions } from 'botframework-webchat/hook';
2526
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';

__tests__/html2/simple/fatModule/esm.run/supportPolymiddleware.renderWebChat.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -20,6 +18,9 @@
2018
}
2119
</script>
2220
<script type="module">
21+
import '/test-harness.mjs';
22+
import '/test-page-object.mjs';
23+
2324
import { createDirectLine, createStoreWithOptions, hooks, renderWebChat } from 'botframework-webchat';
2425
import { useStyleOptions } from 'botframework-webchat/hook';
2526
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';

__tests__/html2/simple/fatModule/esm.sh/adaptiveCards.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -17,6 +15,9 @@
1715
}
1816
</script>
1917
<script type="module">
18+
import '/test-harness.mjs';
19+
import '/test-page-object.mjs';
20+
2021
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
2122

2223
run(async function () {

__tests__/html2/simple/fatModule/esm.sh/fluentTheme.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
<style type="text/css">
86
/* TODO: [P*] Can we eliminate this style? */
97
.fui-FluentProvider,
@@ -29,6 +27,9 @@
2927
}
3028
</script>
3129
<script type="module">
30+
import '/test-harness.mjs';
31+
import '/test-page-object.mjs';
32+
3233
import { FluentProvider, webLightTheme } from '@fluentui/react-components';
3334
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
3435
import { FluentThemeProvider } from 'botframework-webchat-fluent-theme';

__tests__/html2/simple/fatModule/esm.sh/simple.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -17,6 +15,9 @@
1715
}
1816
</script>
1917
<script type="module">
18+
import '/test-harness.mjs';
19+
import '/test-page-object.mjs';
20+
2021
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
2122

2223
run(async function () {

__tests__/html2/simple/fatModule/esm.sh/supportPolymiddleware.reactDOMRender.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
5-
<script crossorigin="anonymous" src="/test-harness.js"></script>
6-
<script crossorigin="anonymous" src="/test-page-object.js"></script>
75
</head>
86
<body>
97
<main id="webchat"></main>
@@ -18,6 +16,9 @@
1816
}
1917
</script>
2018
<script type="module">
19+
import '/test-harness.mjs';
20+
import '/test-page-object.mjs';
21+
2122
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
2223
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2324
import { createElement } from 'react';

0 commit comments

Comments
 (0)