diff --git a/macos-selenium-mochajs/GEMINI.md b/macos-selenium-mochajs/GEMINI.md new file mode 100644 index 0000000..de8b2a1 --- /dev/null +++ b/macos-selenium-mochajs/GEMINI.md @@ -0,0 +1,13 @@ +# Gemini CLI Prompt for ChromeDriver Bug Triage + +Your task is to triage a ChromeDriver bug report using this pre-configured bug reproduction template. The goal is to confirm the bug's presence by writing a test that is expected to fail. + +**Bug to Triage:** `b/` (Please provide the actual bug ID in your prompt) + +**Workflow:** + +1. Read the bug description for the provided bug ID to understand the reproduction steps. +2. Modify the `test.js` file in the current directory to add a new test case that attempts to reproduce this bug. +3. **Crucially, the test must be written to fail if the bug exists.** The assertion in the test should check for the correct behavior, which will fail if the bug is present. +4. The new test code must be thoroughly commented, explaining the reproduction steps, what the test is doing, and why it is expected to fail in the presence of the bug. **Specifically, justify the `expected` value in the assertion using details from the bug description and, if relevant, the WebDriver specification.** +5. After adding the test, run the test suite to confirm that the new test fails as expected, which successfully reproduces the bug. diff --git a/macos-selenium-mochajs/README.md b/macos-selenium-mochajs/README.md index caf2caf..676d9c8 100644 --- a/macos-selenium-mochajs/README.md +++ b/macos-selenium-mochajs/README.md @@ -97,3 +97,18 @@ it('ISSUE REPRODUCTION', async function () { The included GitHub Actions workflow in `.github/workflows/macos-selenium-mochajs.yml` will automatically run the tests on every push and pull request. + +## Automating Triage with Gemini CLI + +The Gemini CLI can be used to automate the bug triaging process using the template defined in GEMINI.md. + +### Prerequisits + +Consult internal documentation for exact MCP servers required to access Buganizer. + +### Execution + +Run gemini cli and prompt +``` +Triage chromedriver bug +```