Adapt test case

Signed-off-by: daliu <liudaax@126.com>
This commit is contained in:
daliu 2024-02-04 17:01:04 +08:00
parent 220a306444
commit ac0c1d2977

View file

@ -221,7 +221,7 @@ describe('TopicTable Components', () => {
).toEqual(2);
// Internal topic action buttons are disabled
const internalTopicRow = screen.getByRole('row', {
name: '__internal.topic 1 0 1 0 0 Bytes',
name: '__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes',
});
expect(internalTopicRow).toBeInTheDocument();
expect(
@ -231,7 +231,7 @@ describe('TopicTable Components', () => {
).toBeDisabled();
// External topic action buttons are enabled
const externalTopicRow = screen.getByRole('row', {
name: 'external.topic 1 0 1 0 1 KB',
name: 'external.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 1 KB',
});
expect(externalTopicRow).toBeInTheDocument();
const extBtn = within(externalTopicRow).getByRole('button', {