You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
This is the main orchestrator for AI assistants working on this repository. It routes you to the correct templates and documentation based on the developer's task.
6
6
7
-
**For every developer request:** (1) Identify task type (A–E below). (2) If the work is in an existing packageor widget, load that scope's ai-docs (see [Package and widget ai-docs reference](#package-and-widget-ai-docs-reference)) and follow its AGENTS.md. (3) Open the template for that type and complete its mandatory pre-steps (see [Mandatory pre-steps by task type](#mandatory-pre-steps-by-task-type)). (4) Then follow the rest of this guide and the template.
7
+
**For every developer request:** (1) Identify task type (A–F below). (2) If the work is in an existing package, widget, or test framework scope, load that scope's ai-docs (see [Package and widget ai-docs reference](#package-and-widget-ai-docs-reference)) and follow its AGENTS.md. (3) Open the template for that type and complete its mandatory pre-steps (see [Mandatory pre-steps by task type](#mandatory-pre-steps-by-task-type)). (4) Then follow the rest of this guide and the template.
8
8
9
9
---
10
10
@@ -55,7 +55,13 @@ If the developer's message contains multiple distinct task types (for example, "
55
55
**E. Understanding Architecture**
56
56
- Developer needs to understand how something works
57
57
-**Read:** That scope's `ai-docs/AGENTS.md` (usage) and `ai-docs/ARCHITECTURE.md` (technical details); use [Package and widget ai-docs reference](#package-and-widget-ai-docs-reference) to find the path.
58
-
-**Available for:** station-login, user-state, store, cc-components, cc-widgets, ui-logging, test-fixtures; for task package use per-widget ai-docs (CallControl, IncomingTask, OutdialCall, TaskList).
58
+
-**Available for:** station-login, user-state, store, cc-components, cc-widgets, ui-logging, test-fixtures, playwright; for task package use per-widget ai-docs (CallControl, IncomingTask, OutdialCall, TaskList).
59
+
60
+
**F. Playwright E2E Test Work**
61
+
- Developer wants to add/update/stabilize Playwright tests, suites, sets, or test framework docs
@@ -202,6 +209,7 @@ Before generating or changing any code, you MUST complete the **pre-step section
202
209
|**cc-widgets**|[packages/contact-center/cc-widgets/ai-docs/AGENTS.md](packages/contact-center/cc-widgets/ai-docs/AGENTS.md)| Same folder |
203
210
|**ui-logging**|[packages/contact-center/ui-logging/ai-docs/AGENTS.md](packages/contact-center/ui-logging/ai-docs/AGENTS.md)| Same folder |
204
211
|**samples-cc-react-app**|[widgets-samples/cc/samples-cc-react-app/ai-docs/AGENTS.md](widgets-samples/cc/samples-cc-react-app/ai-docs/AGENTS.md)| Same folder if present |
**Task package note:** The task package has multiple widgets (CallControl, IncomingTask, OutdialCall, TaskList). When working on one of them, use that widget's ai-docs path above, not a generic task path.
207
215
@@ -212,6 +220,11 @@ Before generating or changing any code, you MUST complete the **pre-step section
212
220
- Find available methods, events, types
213
221
- Check method signatures before using
214
222
223
+
**If working on Playwright tests/framework:**
224
+
- Read: `playwright/ai-docs/AGENTS.md`
225
+
- Read: `playwright/ai-docs/ARCHITECTURE.md`
226
+
- Use: `ai-docs/templates/playwright/00-master.md` and complete `01-pre-questions.md` before implementation
227
+
215
228
---
216
229
217
230
## Step 3: SDK API Consultation (Before Code Generation)
@@ -479,6 +492,11 @@ yarn build
479
492
**If architecture changed:**
480
493
- Update: Relevant architecture documentation as needed
3. Apply framework updates and documentation alignment -> [03-framework-and-doc-updates.md](./03-framework-and-doc-updates.md)
14
+
4. Validate before completion -> [04-validation.md](./04-validation.md)
15
+
16
+
Doc alignment is mandatory when any suite/test/set/framework behavior changes.
17
+
18
+
---
19
+
20
+
## Task Types
21
+
22
+
Use one or more values from:
23
+
24
+
-`new_test_suite`
25
+
-`new_test_file`
26
+
-`add_scenarios_to_existing_test`
27
+
-`update_existing_test_logic`
28
+
-`stabilize_flaky_tests`
29
+
-`add_or_update_user_set`
30
+
-`add_or_update_utils`
31
+
-`add_or_update_test_manager`
32
+
-`add_or_update_constants`
33
+
-`add_or_update_global_setup`
34
+
-`update_playwright_docs`
35
+
36
+
---
37
+
38
+
## Current Set-to-Suite Mapping
39
+
40
+
Use `playwright/test-data.ts` as the source of truth for current set/suite mappings.
41
+
42
+
Guidance:
43
+
- Read existing `USER_SETS` entries before proposing changes
44
+
- Reuse an existing set when possible
45
+
- Create a new set only when required by scenario isolation, credentials, or participant count
46
+
- Keep set design generic so any scenario can be added via requirements intake
47
+
48
+
---
49
+
50
+
## Execution Guidance
51
+
52
+
- Always start with [01-pre-questions.md](./01-pre-questions.md).
53
+
- Keep implementations aligned with current framework files (`playwright/suites`, `playwright/tests`, `playwright/Utils`, `playwright/test-manager.ts`, `playwright/test-data.ts`, `playwright/constants.ts`, `playwright/global.setup.ts`, `playwright.config.ts`).
54
+
- For all test/suite/set/framework changes, update `playwright/ai-docs/AGENTS.md` and/or `playwright/ai-docs/ARCHITECTURE.md` as part of the same task.
55
+
- End with [04-validation.md](./04-validation.md).
0 commit comments