Skip to content

fix: "manage users" button should close modal on settings page#6

Merged
mohanarpit merged 2 commits intoreleasefrom
fix/manage-users
Jul 2, 2020
Merged

fix: "manage users" button should close modal on settings page#6
mohanarpit merged 2 commits intoreleasefrom
fix/manage-users

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 1, 2020

No description provided.

@ghost ghost requested a review from riodeuno July 1, 2020 08:50
Copy link
Copy Markdown
Contributor

@riodeuno riodeuno left a comment

Choose a reason for hiding this comment

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

LGTM

@mohanarpit mohanarpit merged commit 6fff995 into release Jul 2, 2020
@mohanarpit mohanarpit deleted the fix/manage-users branch July 2, 2020 03:10
Nikhil-Nandagopal pushed a commit that referenced this pull request Nov 3, 2020
Update import alias in the index.tsx and added some documentation in the README
subrata71 added a commit that referenced this pull request Apr 5, 2026
…dropdown synchronization

The test was failing intermittently because the click on .rc-tree-select-selector
after deploy did not always open the dropdown. The root cause is a React hydration
timing gap: the element is visible in the DOM before React attaches its event
handlers, so the click fires but is swallowed silently, leaving the dropdown in its
hidden state (rc-tree-select-dropdown-hidden with display: none).

Prior fixes (409e03d, 2a262ac, d31ea85) all addressed DOM presence but not React
readiness, so the flakiness persisted.

This fix uses a two-phase approach:
- Phase 1: A cy.waitUntil loop that clicks the selector and checks the library's
  own rc-tree-select-open class on the widget root. Only re-clicks when the dropdown
  is actually closed, preventing toggle oscillation.
- Phase 2: Once open, waits for the specific "Green" option to be visible via
  cy.xpath().should("be.visible") before clicking it.

Also closes the dropdown at the end of test #5 to prevent state leakage into test #6.
subrata71 added a commit that referenced this pull request Apr 5, 2026
Replace fragile multi-step action selector UI setup with deterministic
JS mode configuration, and add a conditional retry for the deployed
TreeSelect dropdown click to handle widget remount timing during page
hydration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

3 participants