[feature]: Support fast SQL auditing #414
Triggered via pull request
September 12, 2023 11:22
Status
Failure
Total duration
30m 29s
Artifacts
–
Annotations
12 errors and 49 warnings
Order/Detail > should get new sql audit result when update audit sql:
src/page/Order/Detail/index.test.tsx#L397
Error: expect(received).toMatchSnapshot()
Snapshot name: `Order/Detail should get new sql audit result when update audit sql 1`
- Snapshot - 4
+ Received + 4
@@ -1108,21 +1108,21 @@
<div
class="ant-row"
style="margin-left: -12px; margin-right: -12px;"
>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
- class="ant-col ant-col-7 ant-form-item-label"
+ class="ant-col ant-form-item-label ant-col-xxl-4"
>
<label
class=""
for="filter_exec_status"
title="audit.table.execStatus"
@@ -1200,11 +1200,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
@@ -1292,11 +1292,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-0 ant-col-xxl-6 ant-col-xxl-offset-6"
+ class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-16 ant-col-xxl-6 ant-col-xxl-offset-2"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Detail/index.test.tsx:449:23)
|
Order/Detail > should update order when click update order button:
src/page/Order/Detail/index.test.tsx#L452
Error: expect(received).toMatchSnapshot()
Snapshot name: `Order/Detail should update order when click update order button 1`
- Snapshot - 4
+ Received + 4
@@ -1109,21 +1109,21 @@
<div
class="ant-row"
style="margin-left: -12px; margin-right: -12px;"
>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
- class="ant-col ant-col-7 ant-form-item-label"
+ class="ant-col ant-form-item-label ant-col-xxl-4"
>
<label
class=""
for="filter_exec_status"
title="audit.table.execStatus"
@@ -1201,11 +1201,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
@@ -1293,11 +1293,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-0 ant-col-xxl-6 ant-col-xxl-offset-6"
+ class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-16 ant-col-xxl-6 ant-col-xxl-offset-2"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Detail/index.test.tsx:478:23)
|
Order/Create > should audit sql when user click audit button:
src/page/Order/Create/index.test.tsx#L131
Error: expect(received).toMatchSnapshot()
Snapshot name: `Order/Create should audit sql when user click audit button 1`
- Snapshot - 4
+ Received + 4
@@ -1041,21 +1041,21 @@
<div
class="ant-row"
style="margin-left: -12px; margin-right: -12px;"
>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
- class="ant-col ant-col-7 ant-form-item-label"
+ class="ant-col ant-form-item-label ant-col-xxl-4"
>
<label
class=""
for="filter_exec_status"
title="audit.table.execStatus"
@@ -1133,11 +1133,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
@@ -1225,11 +1225,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-0 ant-col-xxl-6 ant-col-xxl-offset-6"
+ class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-16 ant-col-xxl-6 ant-col-xxl-offset-2"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Create/index.test.tsx:200:23)
Error: expect(received).toMatchSnapshot()
Snapshot name: `Order/Create should audit sql when user click audit button 2`
- Snapshot - 4
+ Received + 4
@@ -1134,21 +1134,21 @@
<div
class="ant-row"
style="margin-left: -12px; margin-right: -12px;"
>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
<div
class="ant-row ant-form-item-row"
>
<div
- class="ant-col ant-col-7 ant-form-item-label"
+ class="ant-col ant-form-item-label ant-col-xxl-4"
>
<label
class=""
for="filter_exec_status"
title="audit.table.execStatus"
@@ -1226,11 +1226,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-8 ant-col-xxl-6"
+ class="ant-col ant-col-xs-24 ant-col-sm-12 ant-col-xl-12 ant-col-xxl-8"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
@@ -1318,11 +1318,11 @@
</div>
</div>
</div>
</div>
<div
- class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-0 ant-col-xxl-6 ant-col-xxl-offset-6"
+ class="ant-col text-align-right ant-col-xs-24 ant-col-sm-12 ant-col-sm-offset-12 ant-col-xl-8 ant-col-xl-offset-16 ant-col-xxl-6 ant-col-xxl-offset-2"
style="padding-left: 12px; padding-right: 12px;"
>
<div
class="ant-form-item"
>
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Create/index.test.tsx:220:23)
|
test ProjectManage/ProjectDetail > should match snapshot when bound project exists:
src/page/ProjectManage/ProjectDetail/index.test.tsx#L139
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetail should match snapshot when bound project exists 1`
- Snapshot - 0
+ Received + 46
@@ -58,10 +58,56 @@
</a>
</span>
</li>
<li
class="ant-menu-item"
+ data-menu-id="rc-menu-uuid-test-sqlAudit"
+ role="menuitem"
+ style="padding-left: 24px;"
+ tabindex="-1"
+ title="menu.sqlAudit"
+ >
+ <span
+ aria-label="console-sql"
+ class="anticon anticon-console-sql ant-menu-item-icon"
+ role="img"
+ >
+ <svg
+ aria-hidden="true"
+ data-icon="console-sql"
+ fill="currentColor"
+ focusable="false"
+ height="1em"
+ viewBox="64 64 896 896"
+ width="1em"
+ >
+ <defs>
+ <style />
+ </defs>
+ <path
+ d="M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"
+ />
+ <path
+ d="M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"
+ />
+ <path
+ d="M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"
+ />
+ </svg>
+ </span>
+ <span
+ class="ant-menu-title-content"
+ >
+ <a
+ href="/project/default/sqlAudit"
+ >
+ menu.sqlAudit
+ </a>
+ </span>
+ </li>
+ <li
+ class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-order"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
title="menu.order"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/index.test.tsx:144:23)
|
test ProjectManage/ProjectDetail > should show unavailable when project archived is equal true:
src/page/ProjectManage/ProjectDetail/index.test.tsx#L148
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetail should show unavailable when project archived is equal true 1`
- Snapshot - 0
+ Received + 46
@@ -76,10 +76,56 @@
</a>
</span>
</li>
<li
class="ant-menu-item"
+ data-menu-id="rc-menu-uuid-test-sqlAudit"
+ role="menuitem"
+ style="padding-left: 24px;"
+ tabindex="-1"
+ title="menu.sqlAudit"
+ >
+ <span
+ aria-label="console-sql"
+ class="anticon anticon-console-sql ant-menu-item-icon"
+ role="img"
+ >
+ <svg
+ aria-hidden="true"
+ data-icon="console-sql"
+ fill="currentColor"
+ focusable="false"
+ height="1em"
+ viewBox="64 64 896 896"
+ width="1em"
+ >
+ <defs>
+ <style />
+ </defs>
+ <path
+ d="M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"
+ />
+ <path
+ d="M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"
+ />
+ <path
+ d="M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"
+ />
+ </svg>
+ </span>
+ <span
+ class="ant-menu-title-content"
+ >
+ <a
+ href="/project/default/sqlAudit"
+ >
+ menu.sqlAudit
+ </a>
+ </span>
+ </li>
+ <li
+ class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-order"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
title="menu.order"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/index.test.tsx:167:23)
|
test ProjectManage/ProjectDetailLayout > should render menu by user role:
src/page/ProjectManage/ProjectDetail/Layout/__test__/Layout.test.tsx#L58
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetailLayout should render menu by user role 1`
- Snapshot - 0
+ Received + 46
@@ -58,10 +58,56 @@
</a>
</span>
</li>
<li
class="ant-menu-item"
+ data-menu-id="rc-menu-uuid-test-sqlAudit"
+ role="menuitem"
+ style="padding-left: 24px;"
+ tabindex="-1"
+ title="menu.sqlAudit"
+ >
+ <span
+ aria-label="console-sql"
+ class="anticon anticon-console-sql ant-menu-item-icon"
+ role="img"
+ >
+ <svg
+ aria-hidden="true"
+ data-icon="console-sql"
+ fill="currentColor"
+ focusable="false"
+ height="1em"
+ viewBox="64 64 896 896"
+ width="1em"
+ >
+ <defs>
+ <style />
+ </defs>
+ <path
+ d="M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"
+ />
+ <path
+ d="M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"
+ />
+ <path
+ d="M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"
+ />
+ </svg>
+ </span>
+ <span
+ class="ant-menu-title-content"
+ >
+ <a
+ href="/project/test/sqlAudit"
+ >
+ menu.sqlAudit
+ </a>
+ </span>
+ </li>
+ <li
+ class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-order"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
title="menu.order"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/Layout/__test__/Layout.test.tsx:75:24)
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetailLayout should render menu by user role 2`
- Snapshot - 0
+ Received + 46
@@ -58,10 +58,56 @@
</a>
</span>
</li>
<li
class="ant-menu-item"
+ data-menu-id="rc-menu-uuid-test-sqlAudit"
+ role="menuitem"
+ style="padding-left: 24px;"
+ tabindex="-1"
+ title="menu.sqlAudit"
+ >
+ <span
+ aria-label="console-sql"
+ class="anticon anticon-console-sql ant-menu-item-icon"
+ role="img"
+ >
+ <svg
+ aria-hidden="true"
+ data-icon="console-sql"
+ fill="currentColor"
+ focusable="false"
+ height="1em"
+ viewBox="64 64 896 896"
+ width="1em"
+ >
+ <defs>
+ <style />
+ </defs>
+ <path
+ d="M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"
+ />
+ <path
+ d="M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"
+ />
+ <path
+ d="M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"
+ />
+ </svg>
+ </span>
+ <span
+ class="ant-menu-title-content"
+ >
+ <a
+ href="/project/test/sqlAudit"
+ >
+ menu.sqlAudit
+ </a>
+ </span>
+ </li>
+ <li
+ class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-order"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
title="menu.order"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/Layout/__test__/Layout.test.tsx:78:24)
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetailLayout should render menu by user role 3`
- Snapshot - 0
+ Received + 46
@@ -58,10 +58,56 @@
</a>
</span>
</li>
<li
class="ant-menu-item"
+ data-menu-id="rc-menu-uuid-test-sqlAudit"
+ role="menuitem"
+ style="padding-left: 24px;"
+ tabindex="-1"
+ title="menu.sqlAudit"
+ >
+ <span
+ aria-label="console-sql"
+ class="anticon anticon-console-sql ant-menu-item-icon"
+ role="img"
+ >
+ <svg
+ aria-hidden="true"
+ data-icon="console-sql"
+ fill="currentColor"
+ focusable="false"
+ height="1em"
+ viewBox="64 64 896 896"
+ width="1em"
+ >
+ <defs>
+ <style />
+ </defs>
+ <path
+ d="M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"
+ />
+ <path
+ d="M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"
+ />
+ <path
+ d="M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"
+ />
+ </svg>
+ </span>
+ <span
+ class="ant-menu-title-content"
+ >
+ <a
+ href="/project/test/sqlAudit"
+ >
+ menu.sqlAudit
+ </a>
+ </span>
+ </li>
+ <li
+ class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-order"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
title="menu.order"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/Layout/__test__/Layout.test.tsx:90:23)
|
test ProjectManage/ProjectDetailLayout > should render active menu by router pathname:
src/page/ProjectManage/ProjectDetail/Layout/__test__/Layout.test.tsx#L93
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetailLayout should render active menu by router pathname 1`
- Snapshot - 0
+ Received + 46
@@ -58,10 +58,56 @@
</a>
</span>
</li>
<li
class="ant-menu-item"
+ data-menu-id="rc-menu-uuid-test-sqlAudit"
+ role="menuitem"
+ style="padding-left: 24px;"
+ tabindex="-1"
+ title="menu.sqlAudit"
+ >
+ <span
+ aria-label="console-sql"
+ class="anticon anticon-console-sql ant-menu-item-icon"
+ role="img"
+ >
+ <svg
+ aria-hidden="true"
+ data-icon="console-sql"
+ fill="currentColor"
+ focusable="false"
+ height="1em"
+ viewBox="64 64 896 896"
+ width="1em"
+ >
+ <defs>
+ <style />
+ </defs>
+ <path
+ d="M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"
+ />
+ <path
+ d="M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"
+ />
+ <path
+ d="M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"
+ />
+ </svg>
+ </span>
+ <span
+ class="ant-menu-title-content"
+ >
+ <a
+ href="/project/test/sqlAudit"
+ >
+ menu.sqlAudit
+ </a>
+ </span>
+ </li>
+ <li
+ class="ant-menu-item"
data-menu-id="rc-menu-uuid-test-order"
role="menuitem"
style="padding-left: 24px;"
tabindex="-1"
title="menu.order"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/Layout/__test__/Layout.test.tsx:122:23)
|
test Nav/Header/Modal > should match snapshot:
src/components/Nav/Header/Modal/index.test.tsx#L48
Error: expect(received).toMatchSnapshot()
Snapshot name: `test Nav/Header/Modal should match snapshot 1`
- Snapshot - 1
+ Received + 1
@@ -88,11 +88,11 @@
>
<h5
class="ant-typography"
>
UI Version:
- feature/issue-110 72a0e52
+ feature/sql-audit 9b663b4
</h5>
</div>
<div
class="ant-space-item"
style="margin-bottom: 8px;"
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/index.test.tsx:53:25)
|
test ProjectManage/ProjectDetailLayout/index > should match snapshot:
src/page/ProjectManage/ProjectDetail/Layout/__test__/index.test.tsx#L6
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetailLayout/index should match snapshot 1`
- Snapshot - 0
+ Received + 10
@@ -9,10 +9,20 @@
</CustomLink>,
"title": "menu.projectOverview",
},
Object {
"icon": <ForwardRef(ConsoleSqlOutlined) />,
+ "key": "sqlAudit",
+ "label": <CustomLink
+ to="project/test/sqlAudit"
+ >
+ menu.sqlAudit
+ </CustomLink>,
+ "title": "menu.sqlAudit",
+ },
+ Object {
+ "icon": <ForwardRef(ConsoleSqlOutlined) />,
"key": "order",
"label": <CustomLink
to="project/test/order"
>
menu.order
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/Layout/__test__/index.test.tsx:9:7)
at Promise.then.completed (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:391:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:316:10)
at _callCircusTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:218:40)
at _runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:155:3)
at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:66:9)
at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:60:9)
at run (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:25:3)
at runAndTransformResultsToJestFormat (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21)
at jestAdapter (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
at runTestInternal (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:389:16)
at runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:475:34)
Error: expect(received).toMatchSnapshot()
Snapshot name: `test ProjectManage/ProjectDetailLayout/index should match snapshot 2`
- Snapshot - 0
+ Received + 10
@@ -9,10 +9,20 @@
</CustomLink>,
"title": "menu.projectOverview",
},
Object {
"icon": <ForwardRef(ConsoleSqlOutlined) />,
+ "key": "sqlAudit",
+ "label": <CustomLink
+ to="project/test/sqlAudit"
+ >
+ menu.sqlAudit
+ </CustomLink>,
+ "title": "menu.sqlAudit",
+ },
+ Object {
+ "icon": <ForwardRef(ConsoleSqlOutlined) />,
"key": "order",
"label": <CustomLink
to="project/test/order"
>
menu.order
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/ProjectManage/ProjectDetail/Layout/__test__/index.test.tsx:13:7)
at Promise.then.completed (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:391:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:316:10)
at _callCircusTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:218:40)
at _runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:155:3)
at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:66:9)
at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:60:9)
at run (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:25:3)
at runAndTransformResultsToJestFormat (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21)
at jestAdapter (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
at runTestInternal (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:389:16)
at runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:475:34)
|
test-coverage
Error: The process '/usr/local/bin/yarn' failed with exit code 1
Error: The process '/usr/local/bin/yarn' failed with exit code 1
at rh._setResult (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2/dist/index.js:21:17898)
at rh.CheckComplete (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2/dist/index.js:21:17485)
at ChildProcess.<anonymous> (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2/dist/index.js:21:16477)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
|
test-coverage
Jest coverage report action failed
|
test-coverage
Process completed with exit code 1.
|
🧾 Statement is not covered:
src/hooks/useStaticStatus/index.tsx#L308
Warning! Not covered statement
|
🕹️ Function is not covered:
src/hooks/useStaticStatus/index.tsx#L307
Warning! Not covered function
|
🌿 Branch is not covered:
src/page/Order/AuditResult/AuditResultFilterForm.tsx#L65
Warning! Not covered branch
|
🌿 Branch is not covered:
src/page/Order/AuditResult/AuditResultFilterForm.tsx#L66
Warning! Not covered branch
|
🌿 Branch is not covered:
src/page/Order/AuditResult/AuditResultFilterForm.tsx#L67
Warning! Not covered branch
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L41
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L44
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L49
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L52
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L57
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L60
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L66
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L69
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L74
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L86
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L89
Warning! Not covered statement
|
🧾 Statement is not covered:
src/page/Order/AuditResult/column.tsx#L90
Warning! Not covered statement
|
🌿 Branch is not covered:
src/page/Order/AuditResult/column.tsx#L74
Warning! Not covered branch
|
🌿 Branch is not covered:
src/page/Order/AuditResult/column.tsx#L74
Warning! Not covered branch
|
🌿 Branch is not covered:
src/page/Order/AuditResult/column.tsx#L90
Warning! Not covered branch
|
🌿 Branch is not covered:
src/page/Order/AuditResult/column.tsx#L90
Warning! Not covered branch
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L33
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L44
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L49
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L51
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L57
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L59
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L66
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L68
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L73
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L86
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L88
Warning! Not covered function
|
🕹️ Function is not covered:
src/page/Order/AuditResult/column.tsx#L90
Warning! Not covered function
|
🌿 Branch is not covered:
src/page/Order/AuditResult/index.tsx#L108
Warning! Not covered branch
|
🌿 Branch is not covered:
src/page/Order/AuditResult/index.tsx#L179
Warning! Not covered branch
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L7
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L8
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L9
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L11
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L13
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L14
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L17
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L18
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L20
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L24
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L27
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L33
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L34
Warning! Not covered statement
|
🧾 Statement is not covered:
src/hooks/useSQLAuditRecordTag/index.tsx#L35
Warning! Not covered statement
|