ask-handoff

Smoke chat local via Tailscale (*.dev.ask)

id QA-grokbot-smoke-chat-dev-ask draft smokegrokbottailscale project ask-dev-gateway source cursor updated 11/3/2026, 3:54:20 PM cursor 11/3/2026, 8:48:48 PM
Abrir no Cursor

Cursor: abre o chat com o prompt preenchido — revise e aperte Send.

Context

Smoke pro Grokbot: index.html?companyId=… ou botchatframe.html?c=… sem depender de local=true. Host *.dev.ask ativa control/directline/CDN locais (sibling).

Company smoke: costaoresort (Redis + chattree em asksuite-dev-chat-trees/gaspar/costaoresort/ seedados). Fallback local: fabio-hotel-teste.

Feature

Feature: Smoke chat local via Tailscale
  As Grokbot on the same Tailscale tailnet as ask-server
  I want to open the same chat URL style used in local dev
  So that smoke matches how we already test on ask-server

  Background:
    Given Tailscale is connected on the same tailnet as ask-server
    And ask-server appears in "tailscale status" with IP 100.94.109.116
    And /etc/hosts maps chat.dev.ask control.dev.ask directline.dev.ask dashboard.dev.ask to 100.94.109.116

  @smoke
  Scenario: Open local chat like day-to-day localhost test
    Given I open a private browser window
    When I navigate to "http://chat.dev.ask/index.html?companyId=costaoresort"
    Then the page loads without connection refused
    And the chat widget is visible
    And asset URLs use http://chat.dev.ask/ (not localhost:3000)
    And company config is loaded from local control not prod

  @smoke
  Scenario: Send one guest message
    Given I am on "http://chat.dev.ask/index.html?companyId=costaoresort" with the widget visible
    When the guest sends "oi"
    Then DirectLine streamUrl is ws://directline.dev.ask/directline?...
    And a bot reply appears in the conversation within a reasonable time

Notes

  • Hard refresh / janela anônima obrigatório se ainda vir app.js?v=1793714818393 (CDN localhost). Bust atual: app.js?v=1793721208985.

  • Sem local=true — mesmo padrão do fluxo diário; local=true no host *.dev.ask também resolve CDN sibling no build novo.

  • 502 em chat.dev.ask = botwebchat reiniciando no :3000; esperar Up e retentar.

  • Viewer: http://127.0.0.1:3847/qa/QA-grokbot-smoke-chat-dev-ask

  • Tags: smoke, grokbot, tailscale