Repository navigation
Add @chat tag for selecting the Posit Assistant e2e tests - #18371
Merged
Merged
Conversation
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.
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
The
@aitag 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@chattag for that.npx playwright test --grep @chatNo associated GitHub issue -- this is test-tooling only.
Approach
Every suite under
e2e/rstudio/tests/panes/posit-assistant-chat/is tagged@chat:@aikeep it and gain@chat, so--grep @aiselects exactly what it did before.chat-guardrails-paths.test.tsgets@chatonly. It drives the guardrails through.rs.chat.withGuardrailsfrom 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@aidoesn't read as an oversight.No change to
playwright.config.ts:@chatis a selection tag, not an exclusion, so nothing goes into either project'sgrepInvert. No change totests/auth.setup.tseither -- Playwright does not apply--grepto a project's dependencies, so the setup project still runs and provisions credentials under--grep @chat.The CI workflows already forward a
grepworkflow_dispatchinput to--grep, so@chatworks there with no workflow changes.shiny-app-python.draft.tsis left untagged: it is a.draft.tswrapping adescribe.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:
npx tsc --noEmit--grep @chat@chatcode_suggestions+edit_suggestionsunder@chat--grep @ai--grep-invert @aichat-guardrails-paths.test.ts(31 tests)--grep @chatQA Notes
None. No product code is touched.
Documentation
e2e/rstudio/README.md: a@chatrow in the Available Tags table and a--grep @chatexample in the Filtering by Tag section.Checklist
NEWS.md-- N/A, test tooling only, no user-facing change