Explorar o código

change test data page path to prevent flaky test

Futa Arai %!s(int64=2) %!d(string=hai) anos
pai
achega
4869faabc9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/app/test/integration/models/v5.page.test.js

+ 2 - 2
apps/app/test/integration/models/v5.page.test.js

@@ -997,7 +997,7 @@ describe('Page', () => {
         descendantCount: 0,
       },
       {
-        path: '/page_with_multiple_individual_granted_groups',
+        path: '/with_multiple_individual_granted_groups',
         grant: Page.GRANT_USER_GROUP,
         grantedGroups: [
           { item: userGroupIdPModelA, type: GroupType.userGroup },
@@ -1472,7 +1472,7 @@ describe('Page', () => {
       describe('update grant of a page from GRANT_USER_GROUP to GRANT_USER_GROUP', () => {
         test('successfully change the granted groups, with the previous groups wich user is not related to remaining', async() => {
           // path
-          const path = '/page_with_multiple_individual_granted_groups';
+          const path = '/with_multiple_individual_granted_groups';
           // page
           const _page = await Page.findOne({ path, grant: Page.GRANT_USER_GROUP });
           expect(_page).toBeTruthy();