Fix typos (#1409)
This commit is contained in:
parent
348071c780
commit
439d41da0b
2 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ const Details: React.FC = () => {
|
||||||
{!isReadOnly && (
|
{!isReadOnly && (
|
||||||
<Dropdown label={<VerticalElipsisIcon />} right>
|
<Dropdown label={<VerticalElipsisIcon />} right>
|
||||||
<DropdownItem onClick={onResetOffsets}>
|
<DropdownItem onClick={onResetOffsets}>
|
||||||
Reset offsest
|
Reset offsets
|
||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
style={{ color: Colors.red[50] }}
|
style={{ color: Colors.red[50] }}
|
||||||
|
|
|
@ -73,8 +73,8 @@ describe('Details component', () => {
|
||||||
expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('hanles [Reset offsest] click', async () => {
|
it('handles [Reset offsets] click', async () => {
|
||||||
userEvent.click(screen.getByText('Reset offsest'));
|
userEvent.click(screen.getByText('Reset offsets'));
|
||||||
expect(history.location.pathname).toEqual(
|
expect(history.location.pathname).toEqual(
|
||||||
clusterConsumerGroupResetOffsetsPath(clusterName, groupId)
|
clusterConsumerGroupResetOffsetsPath(clusterName, groupId)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue