Skip to content

Add @chat tag for selecting the Posit Assistant e2e tests - #18371

Merged
gtritchie merged 2 commits into
mainfrom
test/chat-tag-e2e
Jul 27, 2026
Merged

gtritchie merged 2 commits into
mainfrom
test/chat-tag-e2e

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Intent

The @ai tag selects both the Posit Assistant chat suites and the Copilot / Posit AI code-suggestion suites (ghost text, NES). There was no way to run just the Assistant tests. This adds a @chat tag for that.

npx playwright test --grep @chat

No associated GitHub issue -- this is test-tooling only.

Approach

Every suite under e2e/rstudio/tests/panes/posit-assistant-chat/ is tagged @chat:

  • The 17 suites that already carried @ai keep it and gain @chat, so --grep @ai selects exactly what it did before.
  • chat-guardrails-paths.test.ts gets @chat only. It drives the guardrails through .rs.chat.withGuardrails from the R console with no AI provider in the loop, so it needs no credentials and must keep running under --grep-invert @ai. A note in its header docstring records that, so the missing @ai doesn't read as an oversight.

No change to playwright.config.ts: @chat is a selection tag, not an exclusion, so nothing goes into either project's grepInvert. No change to tests/auth.setup.ts either -- Playwright does not apply --grep to a project's dependencies, so the setup project still runs and provisions credentials under --grep @chat.

The CI workflows already forward a grep workflow_dispatch input to --grep, so @chat works there with no workflow changes.

shiny-app-python.draft.ts is left untagged: it is a .draft.ts wrapping a describe.skip, so it is never collected and a tag on it would be inert.

Automated Tests

This change is entirely test metadata. Verified by test selection:

Check Result
npx tsc --noEmit exit 0
--grep @chat 80 tests / 19 files (78 plus the 2 setup tests)
chat files selected by @chat 18 of 18
code_suggestions + edit_suggestions under @chat 0
--grep @ai 78 tests / 20 files, unchanged
--grep-invert @ai still runs chat-guardrails-paths.test.ts (31 tests)
setup project under --grep @chat both auth tests present

QA Notes

None. No product code is touched.

Documentation

e2e/rstudio/README.md: a @chat row in the Available Tags table and a --grep @chat example in the Filtering by Tag section.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md -- N/A, test tooling only, no user-facing change
  • If this PR adds or changes UI, the updated UI meets accessibility standards -- N/A, no UI change
  • A reviewer is assigned to this PR
  • This PR passes all local unit tests

Tag every suite under tests/panes/posit-assistant-chat/ with @chat so the
Assistant tests can be run on their own, without the Copilot ghost-text and
NES code-suggestion tests that @ai also selects.

The 17 suites that already carried @ai keep it and gain @chat.
chat-guardrails-paths.test.ts gets @chat only: it drives the guardrails from
the R console with no AI provider in the loop, so it needs no credentials and
must keep running under --grep-invert @ai.

No config change is needed. @chat is a selection tag, not an exclusion, and
Playwright does not apply --grep to a project's dependencies, so the auth
setup project still runs and provisions credentials under --grep @chat.
@gtritchie gtritchie added this to the 2026.08 (Yellow Yarrow) milestone Jul 27, 2026
@gtritchie
gtritchie requested a review from ronblum July 27, 2026 21:03
@posit-snyk-bot

posit-snyk-bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gtritchie
gtritchie merged commit 13279f5 into main Jul 27, 2026
21 checks passed
@gtritchie
gtritchie deleted the test/chat-tag-e2e branch July 27, 2026 21:46
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
1874 0 375 1
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ desktop-linux 461 0 97 0
✅ desktop-macos 464 0 94 1
✅ desktop-windows 474 0 90 0
✅ server-linux 455 0 94 0
✅ setup 20 0 0 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 8d94468d83c09b31a0df79a7536fe01b23cb4ccd - Run #356

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.

2 participants