This commit is contained in:
pa
2026-03-11 22:03:57 +09:00
parent bf9b66bdf4
commit 884744cb30
35 changed files with 892 additions and 515 deletions

View File

@@ -145,15 +145,17 @@ function mountComponent(overrides = {}) {
});
const groupStore = useGroupStore(pinia);
groupStore.groupDialog = {
id: 'grp_1',
visible: true,
ref: {
galleries: [...MOCK_GALLERIES]
},
galleries: { ...MOCK_GALLERY_IMAGES },
...overrides
};
groupStore.$patch({
groupDialog: {
id: 'grp_1',
visible: true,
ref: {
galleries: [...MOCK_GALLERIES]
},
galleries: { ...MOCK_GALLERY_IMAGES },
...overrides
}
});
return mount(GroupDialogPhotosTab, {
global: {

View File

@@ -138,21 +138,23 @@ function mountComponent(overrides = {}) {
});
const groupStore = useGroupStore(pinia);
groupStore.groupDialog = {
id: 'grp_1',
visible: true,
posts: [...MOCK_POSTS],
postsFiltered: [...MOCK_POSTS],
postsSearch: '',
ref: {
roles: [
{ id: 'role_1', name: 'Admin' },
{ id: 'role_2', name: 'Member' }
],
permissions: []
},
...overrides
};
groupStore.$patch({
groupDialog: {
id: 'grp_1',
visible: true,
posts: [...MOCK_POSTS],
postsFiltered: [...MOCK_POSTS],
postsSearch: '',
ref: {
roles: [
{ id: 'role_1', name: 'Admin' },
{ id: 'role_2', name: 'Member' }
],
permissions: []
},
...overrides
}
});
return mount(GroupDialogPostsTab, {
global: {