Skip to content

Commit

Permalink
Merge pull request #23 from vtex-apps/patch/dropdown-testid
Browse files Browse the repository at this point in the history
Add testId prop to Dropdown component
  • Loading branch information
jeffersontuc authored Oct 24, 2019
2 parents 3d69557 + 3c18083 commit 0ebf848
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- `testId` prop to `Dropdown` component in order to allow the proper tests.

## [0.11.5] - 2019-10-23

### Changed
Expand Down
2 changes: 2 additions & 0 deletions react/components/QuantitySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const QuantitySelector: FunctionComponent<Props & InjectedIntlProps> = ({
<div className="dn-m">
<Dropdown
id={`quantity-dropdown-mobile-${id}`}
testId={`quantity-dropdown-mobile-${id}`}
options={dropdownOptions}
size="small"
value={normalizedValue}
Expand All @@ -143,6 +144,7 @@ const QuantitySelector: FunctionComponent<Props & InjectedIntlProps> = ({
<div className="dn db-m">
<Dropdown
id={`quantity-dropdown-${id}`}
testId={`quantity-dropdown-${id}`}
options={dropdownOptions}
value={normalizedValue}
onChange={(event: any) => handleDropdownChange(event.target.value)}
Expand Down

0 comments on commit 0ebf848

Please sign in to comment.