← Back to Pull requests

fix(e2e): stabilize Monaco editor fill for credential types CRUD #3559

Closed
unknown closed this pull request without merging on Sep 14, 2026 12:58 UTC
View on GitHub
unknown unknown commented on Sep 09, 2026 20:58 UTC
Author

Summary

Hardens the shared fillMonacoEditor Playwright helper on top of the clipboard-based Monaco fix already merged in #3528.

The EDA credential types CRUD test (credential-types-crud.spec.ts) was timing out waiting for Generate extra vars because malformed JSON in the inputs editor prevented inputs.fields from parsing. Upstream devel already includes the core clipboard paste strategy (#3528) and stabilized credential-type assertions (#3522). This PR adds incremental reliability improvements to the shared helper and Playwright project config.

Changes

playwright/commands/fillMonacoEditor.ts

  • Focus Monaco's .view-lines surface before editing (more reliable than the aria textbox alone)

  • Verify clipboard writes via read-back before pasting; fall back to insertText when clipboard APIs fail

  • Assert editor content after fill to catch corruption early

  • Preserve upstream WebKit execCommand paste path from #3528
  • playwright/playwright.config.ts

  • Grant clipboard-read / clipboard-write on live firefox, live webkit, and live upgrade projects
  • Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • Risk Analysis - REQUIRED

  • High — Broad platform impact (e.g., SWR config, shared framework components, authentication, routing, API wrappers, build/bundler config). Changes affect multiple workspaces or could cause widespread regressions.

  • Medium — Scoped but cross-cutting (e.g., shared utility functions, changes to multiple pages within one workspace, component library updates, test infrastructure). Limited blast radius but touches common code paths.

  • Low — Narrowly scoped (e.g., single page fix, styling tweak, documentation, test-only changes, copy/string updates). Minimal risk of unintended side effects.
  • Dependencies

    Builds on changes already in devel:

  • #3528 — Monaco clipboard paste fix

  • #3522 — Credential-type Playwright assertion stabilization
  • Testing

    Ephemeral E2E Tests

    Once PR is ready and preliminary checks pass, trigger tests by posting a comment /run-playwright on this PR.

    Tests run against a fresh AAP instance (version based on branch).

    External Server E2E Runs

    Targeted spec (original failure):

    cd playwright && npx playwright test tests/integration/automation-decisions/credential-types/credential-types-crud.spec.ts --project 'live chromium' --max-failures=1 --retries=0
    

    Broader Monaco regression checks:

    cd playwright && npx playwright test \
      tests/integration/automation-decisions/credential-types/credential-types-crud.spec.ts \
      tests/integration/automation-execution/infrastructure/credential-types/credential-types.spec.ts \
      tests/integration/automation-content/remotes/remotes.spec.ts \
      --project 'live chromium' --max-failures=1 --retries=0
    

    Manual Testing

    N/A — test infrastructure only.

    Screenshots

    N/A

    Diff: 370 lines (+277 / -93) across 4 files Reviewer: nixocio Review duration: 6720m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 370 lines diff across 4 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.354
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #3559"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.8% (MEDIUM) · Higher = larger blast radius
    47.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%