-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1525 Add "Render error" connectivity status for JavaScript errors. #1927
Conversation
New test is failing. I am investigating - sorry for the delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better.
const scriptElement = document.createElement('script'); | ||
setup: () => | ||
Promise.all([ | ||
window.WebChatTest.loadScript('https://unpkg.com/core-js@2.6.3/client/core.min.js'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we installing these dependencies inline with the tests? is there another purpose than this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to mock DirectLineJS in this test. And DirectLineJS use Observable. Thus, we need to temporarily include core-js
in the browser to provide Observable for us to mock DLJS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it!
Fix: #1525
createStore
in the Web Chat API Reference