Skip to content

Fix failing Playwright tests in settings and user journey suites - #156

Merged
jgindin merged 1 commit into
mainfrom
fix-failing-playwright-tests
Aug 7, 2026
Merged

jgindin merged 1 commit into
mainfrom
fix-failing-playwright-tests

Conversation

@jgindin

@jgindin jgindin commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • In settings-and-configuration.e2e.ts and user-journey.e2e.ts, replace unscoped DOM ID locators with accessible role- and label-based locators scoped to dialog elements, and assert explicit dialog visibility and dismissal to eliminate modal animation race conditions.
  • In user-journey.e2e.ts, initialize a static API key in localStorage for the invalid JSON editor test to satisfy the chat panel workspace prerequisite.

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

- In settings-and-configuration.e2e.ts and user-journey.e2e.ts, replace
  unscoped DOM ID locators with accessible role- and label-based
  locators scoped to dialog elements, and assert explicit dialog
  visibility and dismissal to eliminate modal animation race
  conditions.
- In user-journey.e2e.ts, initialize a static API key in localStorage
  for the invalid JSON editor test to satisfy the chat panel
  workspace prerequisite.

TAG=agy
CONV=3598e4aa-e259-4ddd-938f-0d0b440beee4
@jgindin
jgindin requested review from sugoi-yuzuru and wrenj August 7, 2026 15:42

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors end-to-end tests in settings-and-configuration.e2e.ts and user-journey.e2e.ts to use robust role-based Playwright selectors and explicit visibility assertions for the Gemini API Key and Custom Renderer dialogs. Additionally, it initializes localStorage with a fake API key in one of the user journey tests. The reviewer suggests a more robust approach for bypassing the API key requirement by setting a2ui_composer_force_1p to 'true' instead of using a fake key.

Comment thread shell/e2e/user-journey.e2e.ts Resolved
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit 9d39cbf):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

@jgindin
jgindin merged commit 191d807 into main Aug 7, 2026
12 of 13 checks passed
@jgindin
jgindin deleted the fix-failing-playwright-tests branch August 7, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants