Skip to content

Commit

Permalink
fix(Chip): prevented duplicate ID being applied (#9886)
Browse files Browse the repository at this point in the history
* fix(Chip): prevented duplicate ID being applied

* Updated snapshot

* Updated integration test selector
  • Loading branch information
thatblindgeye authored Jan 3, 2024
1 parent 25223e7 commit 91b7d62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/react-core/src/components/Chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ class Chip extends React.Component<ChipProps, ChipState> {
isOverflowChip,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
tooltipPosition,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
id: idProp,
component,
ouiaId,
textMaxWidth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`Matches snapshot 1`] = `
data-ouia-component-id="snapshot-test"
data-ouia-component-type="PF5/Chip"
data-ouia-safe="true"
id="snapshot-test"
>
<span
class="pf-v5-c-chip__content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Chip Group Demo Test', () => {
});

it('Verify tooltipPosition is passed to Tooltip', () => {
cy.get('#longName-chip').focus();
cy.get('.pf-v5-c-chip').focus();
cy.get('.pf-v5-c-tooltip').should('have.class', 'pf-m-bottom');
});
});

0 comments on commit 91b7d62

Please sign in to comment.