Tandlæge Testgaard

Simulated clinic website

Velkommen til Tandlæge Testgaard

Vi tilbyder moderne tandpleje til hele familien. Klik på chat-knappen i hjørnet for at stille spørgsmål eller booke en tid.

🧪

Developer test info

Embed method
Real widget.js script tag (not React component)
Clinic slug
testgaard
Config API
GET /api/widget/config?clinic=testgaard
Chat API
POST /api/chat — SSE streaming
Session
visitor_id + conversation_id in sessionStorage
CSS isolation
Shadow DOM — host page styles cannot bleed in

Embed snippet (what clinics paste):

<script src="https://app.klinikchat.dk/widget.js"
        data-clinic="testgaard"></script>

Test error state (invalid clinic slug):

Navigate to /test/error to see the widget's clinic-not-found error state.

Manual test checklist

  • Widget bubble appears in the correct corner
  • Open the widget → greeting message matches dashboard setting
  • Bubble color matches dashboard color picker
  • Type a message and press Enter → typing indicator → streamed response
  • Send a follow-up → assistant uses conversation context
  • Refresh the page → open the widget → history is restored from session
  • Host page styles do not affect the widget (shadow DOM isolation)
  • Change widget settings in dashboard → reload page → widget reflects changes