fix: contain project media layouts
This commit is contained in:
@@ -234,6 +234,7 @@ describe('ProjectMediaGallery', () => {
|
||||
], 'portrait-strip');
|
||||
|
||||
expect(wrapper.attributes('data-media-layout')).toBe('portrait-strip');
|
||||
expect(wrapper.findAll('.project-media-gallery__item')).toHaveLength(3);
|
||||
expect(wrapper.findAll('figure')).toHaveLength(3);
|
||||
expect(wrapper.findAll('img').map((image) => image.attributes('loading'))).toEqual(['lazy', 'lazy', 'lazy']);
|
||||
expect(wrapper.text()).toContain('Fictional demo profile');
|
||||
|
||||
Reference in New Issue
Block a user