-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Dropdown): add E2E tests (#1962)
* feat: add initial dropdown test * feat: move major interaction tests to e2e * feat: add controleld dropdown e2e tests * Create lovely-chairs-sneeze.md * fix: console log * Update lovely-chairs-sneeze.md * Update lovely-chairs-sneeze.md * fix: BaseInput 2 clicks on dropdown * fix: test for safari * fix: handle double clicks with stopPropogation * fix: eslint error * fix: lint
- Loading branch information
1 parent
0718591
commit a9c779b
Showing
5 changed files
with
376 additions
and
422 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@razorpay/blade": patch | ||
--- | ||
|
||
- feat(Dropdown): add E2E tests | ||
- fix(Dropdown): dropdown getting closed without explicit isOpen={false} in controlled dropdown | ||
|
||
> [!Note] | ||
> | ||
> if you have used ControlledDropdown in a similar way how it was documented, things should work fine. | ||
> | ||
> If you have used `isOpen` from Controlled Dropdown but you're not handling it inside `onOpenChange`, you will have to handle that state as well. E.g. `isOpen={isDropdownOpen} onOpenChange={(isOpen) => setIsDropdownOpen(isOpen)}` |
This file contains 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
Oops, something went wrong.