-
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.
Debump Node.js requirement to 10.14.2 (#3854)
* Debump Node.js requirement to 10.14.2 * Update entry * Typo Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
59 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<script crossorigin="anonymous" src="/__dist__/testharness.js"></script> | ||
<script crossorigin="anonymous" src="/__dist__/webchat-es5.js"></script> | ||
<script crossorigin="anonymous" src="assets/transcript.navigation.js" type="text/babel"></script> | ||
</head> | ||
<body> | ||
<div id="webchat"></div> | ||
<script type="text/babel" data-presets="env,stage-3,react"> | ||
const { | ||
TestAsset: { waitForFocusedActivityInView }, | ||
WebChatTest: { conditions, createDirectline, createStore, host, pageObjects, timeouts, token } | ||
} = window; | ||
|
||
(async function () { | ||
window.WebChat.renderWebChat( | ||
{ | ||
directLine: createDirectLine({ token: await token.fetchDirectLineToken() }), | ||
store: createStore() | ||
}, | ||
document.getElementById('webchat') | ||
); | ||
|
||
await pageObjects.wait(conditions.uiConnected(), timeouts.directLine); | ||
|
||
await pageObjects.sendMessageViaSendBox('carousel', { waitForSend: true }); | ||
|
||
await pageObjects.wait(conditions.allImagesLoaded(), timeouts.fetch); | ||
|
||
// Move focus to carousel activity | ||
await host.sendShiftTab(); | ||
await host.sendShiftTab(); | ||
await host.sendShiftTab(); | ||
await waitForFocusedActivityInView(); | ||
|
||
await host.sendKeys('ENTER'); | ||
// focus on first card button | ||
await host.sendTab(); | ||
await host.snapshot(); | ||
|
||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,6 @@ | |
"web-speech-cognitive-services": "7.1.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.0.0" | ||
"node": ">= 10.14.2" | ||
} | ||
} |