This commit is contained in:
pa
2026-03-15 21:28:46 +09:00
parent 9e0116fce7
commit 82339adff3
3 changed files with 11 additions and 11 deletions

View File

@@ -101,17 +101,17 @@ describe('Tools.vue', () => {
expect(push).toHaveBeenCalledWith({ name: 'screenshot-metadata' });
});
test('clicking inventory tool calls showGalleryPage', async () => {
test('clicking gallery tool calls showGalleryPage', async () => {
const wrapper = mount(Tools);
await flushPromises();
const inventoryItem = findToolItemByTitle(
const galleryItem = findToolItemByTitle(
wrapper,
'view.tools.pictures.inventory'
'view.tools.pictures.gallery'
);
expect(inventoryItem).toBeTruthy();
await inventoryItem.trigger('click');
expect(galleryItem).toBeTruthy();
await galleryItem.trigger('click');
expect(showGalleryPage).toHaveBeenCalled();
});