-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathariaLabel.multilineTextBox.html
More file actions
56 lines (48 loc) · 1.56 KB
/
ariaLabel.multilineTextBox.html
File metadata and controls
56 lines (48 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html lang="en-US">
<head>
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<main id="webchat"></main>
<script type="importmap">
{
"imports": {
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
"react": "/__dist__/packages/bundle/static/react.js",
"react-dom": "/__dist__/packages/bundle/static/react-dom.js"
}
}
</script>
<script type="module">
import '/test-harness.mjs';
import '/test-page-object.mjs';
import { createStoreWithOptions, renderWebChat, testIds } from 'botframework-webchat';
const {
testHelpers: { createDirectLineEmulator }
} = window;
// TODO: Should find ways to eliminate this line.
window.WebChat = { createStoreWithOptions, testIds };
testHelpers.hideKnownError();
run(async function () {
const { directLine, store } = createDirectLineEmulator();
renderWebChat(
{
directLine,
overrideLocalizedStrings: {
TEXT_INPUT_ALT: 'Hello, World!'
},
store,
styleOptions: {
sendBoxTextWrap: true
}
},
document.getElementById('webchat')
);
await pageConditions.uiConnected();
expect(pageElements.sendBoxTextBox().tagName).toBe('TEXTAREA');
expect(pageElements.sendBoxTextBox().getAttribute('aria-label')).toBe('Hello, World!');
});
</script>
</body>
</html>