feat(contact-center): add Playwright E2E ai-docs framework for migration#4752
Open
ciscoRankush wants to merge 1 commit intowebex:task-refactorfrom
Open
feat(contact-center): add Playwright E2E ai-docs framework for migration#4752ciscoRankush wants to merge 1 commit intowebex:task-refactorfrom
ciscoRankush wants to merge 1 commit intowebex:task-refactorfrom
Conversation
Add task type G (E2E Test Work) to root AGENTS.md orchestrator with decision tree, signal keywords, routing, context loading, and service routing table entries. Create complete template set (00-master through 04-validation), playwright-specific AGENTS.md and ARCHITECTURE.md with TestManager, Utils, Constants, and Console Log Verification reference, and e2e-patterns.md covering 8 patterns + anti-patterns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
This pull request addresses
The
@webex/contact-centerpackage currently has zero E2E tests. The existing browser testing uses WebdriverIO (wdio.conf.js) forbrowser-plugin-meetingsonly. This PR establishes the complete AI-docs framework for a Playwright E2E migration, mirroring the patterns established in ccWidgets' Playwright framework but adapted for SDK-level testing (SUT is the vanilla JS sample app atdocs/samples/contact-center/).This PR adds task type G (E2E Test Work) to the root AGENTS.md orchestrator so AI agents can properly route, classify, and implement Playwright E2E tasks.
by making the following changes
Root AGENTS.md updates (1 file modified)
playwright/tree to Repository StructureE2E templates (5 new files)
ai-docs/templates/e2e/00-master.md— Orchestrator with 11 E2E task types (G1-G11)ai-docs/templates/e2e/01-pre-questions.md— 12 mandatory questions across 5 sections, including SDK Methods Under Testai-docs/templates/e2e/02-test-implementation.md— 4 implementation paths (A: new test, B: new suite/SET, C: fix flaky/broken, D: update for SDK change)ai-docs/templates/e2e/03-framework-and-doc-updates.md— MANDATORY doc update checklist (not optional)ai-docs/templates/e2e/04-validation.md— Test execution commands and documentation sync checklistPlaywright ai-docs (2 new files)
playwright/ai-docs/AGENTS.md— Usage guide, common commands, baseline counts, context for new contributorsplaywright/ai-docs/ARCHITECTURE.md— Full technical reference: SUT (sample app DOM elements → SDK methods), TestManager (constructor, SetupConfig with 10 options, 7 page properties, 3-phase parallel setup, cleanup), Utils reference (8 files), Constants (7 enums, 12-level timeout hierarchy, console patterns), Console Log Verification Pattern, Set→Suite→Test mapping, file topology, extension points, stability principlesE2E patterns (1 new file)
ai-docs/patterns/e2e-patterns.md— 8 reusable patterns (test factory, console log verification, multi-agent coordination, setup/cleanup lifecycle, timeout selection, state verification, network resilience, RONA handling) + anti-patterns sectionChange Type
The following scenarios were tested
docs/samples/contact-center/app.jsselectorsupstream/task-refactorbaseThe GAI Coding Policy And Copyright Annotation Best Practices
I certified that