SplitterPanel and InlineMessage class name convensions

This commit is contained in:
tugcekucukoglu 2024-05-21 10:15:51 +03:00
parent c5ebd68b74
commit c629ca8f51
8 changed files with 36 additions and 36 deletions

View file

@ -28,13 +28,13 @@ describe('Splitter.vue', () => {
it('should exist', () => {
expect(wrapper.find('.p-splitter.p-component').exists()).toBe(true);
expect(wrapper.find('.p-splitter').classes()).toContain('p-splitter-horizontal');
expect(wrapper.findAll('.p-splitter-panel').length).toBe(2);
expect(wrapper.findAll('.p-splitterpanel').length).toBe(2);
expect(wrapper.find('.p-splitter-gutter-handle').exists()).toBe(true);
});
it('should mousedown', async () => {
const gutter = wrapper.find('.p-splitter-gutter-handle').element;
const siblings = wrapper.findAll('.p-splitter-panel');
const siblings = wrapper.findAll('.p-splitterpanel');
await wrapper.vm.onGutterMouseDown({ currentTarget: { gutter, previousElementSibling: siblings[0].element, nextElementSibling: siblings[1].element }, pageX: 123 }, 0);