Skip to content
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

Merged
merged 18 commits into from
Apr 29, 2019

Conversation

corinagum
Copy link
Contributor

@corinagum corinagum commented Apr 25, 2019

Fix: #1525

  • Updated README.md with createStore in the Web Chat API Reference
  • Updated HowToQuestions.md with link to web-chat tag on Stack Overflow
  • Add UI for render error when there's a JavaScript error in Web Chat

rendererror

@coveralls
Copy link

coveralls commented Apr 25, 2019

Coverage Status

Coverage increased (+0.6%) to 58.127% when pulling df7aca7 on corinagum:1529 into 2c9a659 on Microsoft:master.

@corinagum corinagum changed the title #1529 Add "Render error" connectivity status for JavaScript errors. #1525 Add "Render error" connectivity status for JavaScript errors. Apr 25, 2019
tonyanziano
tonyanziano previously approved these changes Apr 25, 2019
@corinagum
Copy link
Contributor Author

New test is failing. I am investigating - sorry for the delay.

Copy link
Contributor

@compulim compulim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better.

__tests__/basic.js Show resolved Hide resolved
__tests__/offlineUI.js Show resolved Hide resolved
__tests__/offlineUI.js Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
const scriptElement = document.createElement('script');
setup: () =>
Promise.all([
window.WebChatTest.loadScript('https://unpkg.com/core-js@2.6.3/client/core.min.js'),
Copy link
Member

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?

Copy link
Contributor

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!

@cwhitten cwhitten merged commit 0001b8e into microsoft:master Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need offline UI: On JavaScript Error
5 participants