Просмотр исходного кода

Merge pull request #7010 from weseek/fix/109930-vrt-admin-user-groups

fix: VRT Check GROWI User Group Table is shown
Kaori Tokashiki 3 лет назад
Родитель
Сommit
b33f9a8772

+ 2 - 2
packages/app/src/components/Admin/UserGroup/UserGroupTable.tsx

@@ -126,7 +126,7 @@ export const UserGroupTable: FC<Props> = (props: Props) => {
   }, [props.userGroupRelations, props.childUserGroups]);
   }, [props.userGroupRelations, props.childUserGroups]);
 
 
   return (
   return (
-    <>
+    <div data-testid="grw-user-group-table">
       <h2>{props.headerLabel}</h2>
       <h2>{props.headerLabel}</h2>
 
 
       <table className="table table-bordered table-user-list">
       <table className="table table-bordered table-user-list">
@@ -216,6 +216,6 @@ export const UserGroupTable: FC<Props> = (props: Props) => {
           })}
           })}
         </tbody>
         </tbody>
       </table>
       </table>
-    </>
+    </div>
   );
   );
 };
 };

+ 1 - 0
packages/app/test/cypress/integration/40-admin/access-to-admin-page.spec.ts

@@ -106,6 +106,7 @@ context('Access to Admin page', () => {
   it('/admin/user-groups is successfully loaded', () => {
   it('/admin/user-groups is successfully loaded', () => {
     cy.visit('/admin/user-groups');
     cy.visit('/admin/user-groups');
     cy.getByTestid('admin-user-groups').should('be.visible');
     cy.getByTestid('admin-user-groups').should('be.visible');
+    cy.getByTestid('grw-user-group-table').should('be.visible');
     cy.screenshot(`${ssPrefix}-admin-user-groups`);
     cy.screenshot(`${ssPrefix}-admin-user-groups`);
   });
   });