浏览代码

Adapt test case

Signed-off-by: daliu <liudaax@126.com>
daliu 1 年之前
父节点
当前提交
ac0c1d2977
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

+ 2 - 2
kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

@@ -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', {