-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
68 additions
and
17 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
Binary file modified
BIN
+1.25 KB
(110%)
...ty-requirement-non-interactive-adaptive-card-should-not-be-focusable-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.34 KB
(97%)
...tachments-in-live-region-should-narrate-speak-property-adaptive-card-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+54 Bytes
(100%)
...ould-not-move-after-adaptive-card-is-disable-after-manually-disabled-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...ould-not-move-after-adaptive-card-is-disable-after-manually-disabled-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+444 Bytes
(100%)
...ould-not-move-after-adaptive-card-is-disable-after-manually-disabled-3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
expect, | ||
host, | ||
pageObjects, | ||
shareObservable, | ||
timeouts, | ||
token | ||
} = window.WebChatTest; | ||
|
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,56 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<script crossorigin="anonymous" src="/__dist__/testharness.js"></script> | ||
<script crossorigin="anonymous" src="/__dist__/webchat-es5.js"></script> | ||
</head> | ||
<body> | ||
<div id="webchat"></div> | ||
<script type="text/babel" data-presets="env,stage-3,react"> | ||
const { conditions, createStore, expect, host, pageObjects, timeouts, token } = window.WebChatTest; | ||
|
||
const { | ||
Components: { AdaptiveCardContent } | ||
} = window.WebChat; | ||
|
||
(async function () { | ||
const store = createStore(); | ||
const directLine = window.WebChat.createDirectLine({ token: await token.fetchDirectLineToken() }); | ||
const baseProps = { directLine, store }; | ||
const webChatElement = document.getElementById('webchat'); | ||
|
||
window.WebChat.renderWebChat(baseProps, webChatElement); | ||
|
||
await pageObjects.wait(conditions.uiConnected(), timeouts.directLine); | ||
|
||
await pageObjects.sendMessageViaSendBox('document-word', { waitForSend: true }); | ||
await pageObjects.wait(conditions.minNumActivitiesShown(2), timeouts.directLine); | ||
await pageObjects.wait(conditions.scrollToBottomCompleted(), timeouts.directLine); | ||
|
||
const fileContentAriaHidden = document.querySelector('.webchat__fileContent').getAttribute('aria-hidden'); | ||
|
||
expect(fileContentAriaHidden).toBeFalsy(); | ||
|
||
const fileContentButtonLinkLabel = document | ||
.querySelector('.webchat__fileContent__buttonLink') | ||
.getAttribute('aria-label'); | ||
|
||
expect(fileContentButtonLinkLabel).toBeTruthy(); | ||
|
||
await pageObjects.sendMessageViaSendBox('carousel', { waitForSend: true }); | ||
await pageObjects.wait(conditions.minNumActivitiesShown(4), timeouts.directLine); | ||
await pageObjects.wait(conditions.scrollToBottomCompleted(), timeouts.directLine); | ||
|
||
const carouselContainer = document.querySelector('.webchat__carousel-filmstrip').getAttribute('aria-labelledby'); | ||
|
||
expect(carouselContainer).toBeFalsy(); | ||
|
||
await host.done(); | ||
})().catch(async err => { | ||
console.error(err); | ||
|
||
await host.error(err); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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,8 @@ | ||
/** | ||
* @jest-environment ./__tests__/html/__jest__/WebChatEnvironment.js | ||
*/ | ||
|
||
describe('accessibility requirement', () => { | ||
test('Element with aria-label should not have parent aria-hidden', () => | ||
runHTMLTest('accessibility.attachment.aria')); | ||
}); |
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