mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
word
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user