Skip to content
Snippets Groups Projects
Select Git revision
  • 1a32c667a248ae19d2fa94606878b3861f88c4e6
  • mui5-tetras-main-stable default protected
  • mui5-tetras-main-old-stable
  • preprod protected
  • 75-dernieres-ameliorations-avant-workshop-du-7-02
  • wip-fix-xywh
  • wip-positionement-annot
  • wip-surface-transformer
  • uploads-file
  • 69-la-video-demare-quand-on-fait-glisser-le-slider-et-le-clic-creer-un-decalage-entre-le-player
  • 61-recettage-des-outils-d-annotation
  • gestion_multiple_ouverture_pannel_annotation
  • autorisation_un_pannel_annotation
  • autorisation_un_pannel_edition_annotation
  • récupération_temps_video
  • save-shapes-and-position
  • fix-error-create-annotation-pannel
  • time-saving-on-annotation
  • tetras-main protected
  • fix-poc-mirador
  • tetras-antho-test
21 results

AnnotationCreationUtils.js

Blame
  • WindowSideBarPanel.test.js 946 B
    import React from 'react';
    import { shallow } from 'enzyme';
    import WindowSideBarPanel from '../../../src/components/WindowSideBarPanel';
    import WindowSideBarInfoPanel from '../../../src/containers/WindowSideBarInfoPanel';
    
    describe('WindowSideBarPanel', () => {
      let wrapper;
    
      describe('when the sideBarPanel is set to "info"', () => {
        beforeEach(() => {
          wrapper = shallow(<WindowSideBarPanel windowId="abc123" sideBarPanel="info" />);
        });
    
        it('renders the WindowSideBarInfoPanel', () => {
          expect(wrapper.find(WindowSideBarInfoPanel).length).toBe(1);
        });
      });
    
      describe('when the sideBarPanel is set to "closed" (or any other unknown value)', () => {
        beforeEach(() => {
          wrapper = shallow(<WindowSideBarPanel windowId="abc123" sideBarPanel="closed" />);
        });
    
        it('does not render any panel component', () => {
          expect(wrapper.find(WindowSideBarInfoPanel).length).toBe(0);
        });
      });
    });