Skip to content

Commit

Permalink
fix eslint problem
Browse files Browse the repository at this point in the history
Signed-off-by: daliu <liudaax@126.com>
  • Loading branch information
liudaac committed Feb 4, 2024
1 parent 1b37162 commit 220a306
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,17 @@ describe('TopicTable Components', () => {
screen.getByRole('link', { name: '__internal.topic' })
).toBeInTheDocument();
expect(
screen.getByRole('row', { name: '__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes' })
screen.getByRole('row', {

Check failure on line 101 in kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

TopicTable Components › with topics › renders correct rows

TestingLibraryElementError: Unable to find an accessible element with the role "row" and name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes" Here are the accessible roles: button: Name "Delete selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Copy selected topic": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Purge messages of selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" disabled="" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" /> -------------------------------------------------- link: Name "Copy selected topic": <a href="/ui/clusters/test-cluster/all-topics" /> Name "__internal.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/__internal.topic" title="__internal.topic" /> Name "external.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/external.topic" title="external.topic" /> -------------------------------------------------- table: Name "": <table class="sc-hHfuMS hwVmSA" /> -------------------------------------------------- rowgroup: Name "": <thead /> Name "": <tbody /> -------------------------------------------------- row: Name "Topic Name Partitions Out of sync replicas Replication Factor BytesIn /sec BytesOut /sec Msg /sec Msg-5min /sec Fetch /sec Fetch-5min /sec Produce /sec Produce-5min /sec Number of messages Size": <tr /> Name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 Bytes": <tr class="sc-fFucqa gQrCFh" /> Name "external.topic 1 0 1 0 Bytes 0 Bytes 0 1 KB": <tr class="sc-fFucqa gQrCFh" /> -------------------------------------------------- columnheader: Name "": <th class="sc-fodVek eRXZNR" /> Name "Topic Name": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Partitions": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Out of sync replicas": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Replication Factor": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "BytesIn /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "BytesOut /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Produce /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Produce-5min /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Number of messages": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Size": <th class="sc-fodVek fnipsP" colspan="1" /> Name "": <th class="sc-fodVek eiYzdB" colspan="1" /> -------------------------------------------------- checkbox: Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" disabled="" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> -------------------------------------------------- cell: Name "": <td style="width: 1px;" /> Name "__internal.topic": <td /> Name "1": <td /> Name "0": <td /> Name "1": <td /> Name "0 Bytes": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "0": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td style="width: 1px;" /> Name "external.topic": <td /> Name "1":

Check failure on line 101 in kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

TopicTable Components › with topics › renders correct rows

TestingLibraryElementError: Unable to find an accessible element with the role "row" and name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes" Here are the accessible roles: button: Name "Delete selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Copy selected topic": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Purge messages of selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" disabled="" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" /> -------------------------------------------------- link: Name "Copy selected topic": <a href="/ui/clusters/test-cluster/all-topics" /> Name "__internal.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/__internal.topic" title="__internal.topic" /> Name "external.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/external.topic" title="external.topic" /> -------------------------------------------------- table: Name "": <table class="sc-hHfuMS hwVmSA" /> -------------------------------------------------- rowgroup: Name "": <thead /> Name "": <tbody /> -------------------------------------------------- row: Name "Topic Name Partitions Out of sync replicas Replication Factor BytesIn /sec BytesOut /sec Msg /sec Msg-5min /sec Fetch /sec Fetch-5min /sec Produce /sec Produce-5min /sec Number of messages Size": <tr /> Name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 Bytes": <tr class="sc-fFucqa gQrCFh" /> Name "external.topic 1 0 1 0 Bytes 0 Bytes 0 1 KB": <tr class="sc-fFucqa gQrCFh" /> -------------------------------------------------- columnheader: Name "": <th class="sc-fodVek eRXZNR" /> Name "Topic Name": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Partitions": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Out of sync replicas": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Replication Factor": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "BytesIn /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "BytesOut /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Produce /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Produce-5min /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Number of messages": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Size": <th class="sc-fodVek fnipsP" colspan="1" /> Name "": <th class="sc-fodVek eiYzdB" colspan="1" /> -------------------------------------------------- checkbox: Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" disabled="" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> -------------------------------------------------- cell: Name "": <td style="width: 1px;" /> Name "__internal.topic": <td /> Name "1": <td /> Name "0": <td /> Name "1": <td /> Name "0 Bytes": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "0": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td style="width: 1px;" /> Name "external.topic": <td /> Name "1":

Check failure on line 101 in kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

TopicTable Components › with topics › renders correct rows

TestingLibraryElementError: Unable to find an accessible element with the role "row" and name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes" Here are the accessible roles: button: Name "Delete selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Copy selected topic": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Purge messages of selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" disabled="" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" /> -------------------------------------------------- link: Name "Copy selected topic": <a href="/ui/clusters/test-cluster/all-topics" /> Name "__internal.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/__internal.topic" title="__internal.topic" /> Name "external.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/external.topic" title="external.topic" /> -------------------------------------------------- table: Name "": <table class="sc-hHfuMS hwVmSA" /> -------------------------------------------------- rowgroup: Name "": <thead /> Name "": <tbody /> -------------------------------------------------- row: Name "Topic Name Partitions Out of sync replicas Replication Factor BytesIn /sec BytesOut /sec Msg /sec Msg-5min /sec Fetch /sec Fetch-5min /sec Produce /sec Produce-5min /sec Number of messages Size": <tr /> Name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 Bytes": <tr class="sc-fFucqa gQrCFh" /> Name "external.topic 1 0 1 0 Bytes 0 Bytes 0 1 KB": <tr class="sc-fFucqa gQrCFh" /> -------------------------------------------------- columnheader: Name "": <th class="sc-fodVek eRXZNR" /> Name "Topic Name": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Partitions": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Out of sync replicas": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Replication Factor": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "BytesIn /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "BytesOut /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Produce /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Produce-5min /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Number of messages": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Size": <th class="sc-fodVek fnipsP" colspan="1" /> Name "": <th class="sc-fodVek eiYzdB" colspan="1" /> -------------------------------------------------- checkbox: Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" disabled="" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> -------------------------------------------------- cell: Name "": <td style="width: 1px;" /> Name "__internal.topic": <td /> Name "1": <td /> Name "0": <td /> Name "1": <td /> Name "0 Bytes": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "0": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td style="width: 1px;" /> Name "external.topic": <td /> Name "1":

Check failure on line 101 in kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

TopicTable Components › with topics › renders correct rows

TestingLibraryElementError: Unable to find an accessible element with the role "row" and name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes" Here are the accessible roles: button: Name "Delete selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Copy selected topic": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Purge messages of selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" disabled="" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" /> -------------------------------------------------- link: Name "Copy selected topic": <a href="/ui/clusters/test-cluster/all-topics" /> Name "__internal.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/__internal.topic" title="__internal.topic" /> Name "external.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/external.topic" title="external.topic" /> -------------------------------------------------- table: Name "": <table class="sc-hHfuMS hwVmSA" /> -------------------------------------------------- rowgroup: Name "": <thead /> Name "": <tbody /> -------------------------------------------------- row: Name "Topic Name Partitions Out of sync replicas Replication Factor BytesIn /sec BytesOut /sec Msg /sec Msg-5min /sec Fetch /sec Fetch-5min /sec Produce /sec Produce-5min /sec Number of messages Size": <tr /> Name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 Bytes": <tr class="sc-fFucqa gQrCFh" /> Name "external.topic 1 0 1 0 Bytes 0 Bytes 0 1 KB": <tr class="sc-fFucqa gQrCFh" /> -------------------------------------------------- columnheader: Name "": <th class="sc-fodVek eRXZNR" /> Name "Topic Name": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Partitions": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Out of sync replicas": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Replication Factor": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "BytesIn /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "BytesOut /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Produce /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Produce-5min /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Number of messages": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Size": <th class="sc-fodVek fnipsP" colspan="1" /> Name "": <th class="sc-fodVek eiYzdB" colspan="1" /> -------------------------------------------------- checkbox: Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" disabled="" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> -------------------------------------------------- cell: Name "": <td style="width: 1px;" /> Name "__internal.topic": <td /> Name "1": <td /> Name "0": <td /> Name "1": <td /> Name "0 Bytes": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "0": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td style="width: 1px;" /> Name "external.topic": <td /> Name "1":

Check failure on line 101 in kafka-ui-react-app/src/components/Topics/List/__tests__/TopicTable.spec.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

TopicTable Components › with topics › renders correct rows

TestingLibraryElementError: Unable to find an accessible element with the role "row" and name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes" Here are the accessible roles: button: Name "Delete selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Copy selected topic": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Purge messages of selected topics": <button class="sc-eCstlR eyQpqo" disabled="" type="button" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" disabled="" /> Name "Dropdown Toggle": <button aria-label="Dropdown Toggle" class="sc-kLgnNl isvcMN" /> -------------------------------------------------- link: Name "Copy selected topic": <a href="/ui/clusters/test-cluster/all-topics" /> Name "__internal.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/__internal.topic" title="__internal.topic" /> Name "external.topic": <a class="" href="/ui/clusters/test-cluster/all-topics/external.topic" title="external.topic" /> -------------------------------------------------- table: Name "": <table class="sc-hHfuMS hwVmSA" /> -------------------------------------------------- rowgroup: Name "": <thead /> Name "": <tbody /> -------------------------------------------------- row: Name "Topic Name Partitions Out of sync replicas Replication Factor BytesIn /sec BytesOut /sec Msg /sec Msg-5min /sec Fetch /sec Fetch-5min /sec Produce /sec Produce-5min /sec Number of messages Size": <tr /> Name "__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 Bytes": <tr class="sc-fFucqa gQrCFh" /> Name "external.topic 1 0 1 0 Bytes 0 Bytes 0 1 KB": <tr class="sc-fFucqa gQrCFh" /> -------------------------------------------------- columnheader: Name "": <th class="sc-fodVek eRXZNR" /> Name "Topic Name": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Partitions": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Out of sync replicas": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Replication Factor": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "BytesIn /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "BytesOut /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Msg-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Fetch-5min /sec": <th class="sc-fodVek fnipsP" colspan="1" /> Name "Produce /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Produce-5min /sec": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Number of messages": <th class="sc-fodVek eiYzdB" colspan="1" /> Name "Size": <th class="sc-fodVek fnipsP" colspan="1" /> Name "": <th class="sc-fodVek eiYzdB" colspan="1" /> -------------------------------------------------- checkbox: Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" disabled="" type="checkbox" /> Name "": <input class="sc-iJuVqt dMzyeA" type="checkbox" /> -------------------------------------------------- cell: Name "": <td style="width: 1px;" /> Name "__internal.topic": <td /> Name "1": <td /> Name "0": <td /> Name "1": <td /> Name "0 Bytes": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "": <td /> Name "0": <td /> Name "0 Bytes": <td /> Name "": <td /> Name "": <td style="width: 1px;" /> Name "external.topic": <td /> Name "1":
name: '__internal.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 0 Bytes',
})
).toBeInTheDocument();
expect(
screen.getByRole('link', { name: 'external.topic' })
).toBeInTheDocument();
expect(
screen.getByRole('row', { name: 'external.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 1 KB' })
screen.getByRole('row', {
name: 'external.topic 1 0 1 0 Bytes 0 Bytes 0 0 0 0 0 0 0 1 KB',
})
).toBeInTheDocument();

expect(screen.getAllByRole('checkbox').length).toEqual(3);
Expand Down

0 comments on commit 220a306

Please sign in to comment.