github.com/argoproj/argo-cd@v1.8.7/ui/src/app/shared/components/progress/progress-popup.test.tsx (about)

     1  import * as renderer from 'react-test-renderer';
     2  import * as React from 'react';
     3  import {ProgressPopup} from './progress-popup';
     4  
     5  test('ProgressPopup.0%', () => {
     6      const state = renderer.create(<ProgressPopup onClose={() => {
     7      }} percentage={0} title={''}/>);
     8  
     9      expect(state).toMatchSnapshot();
    10  });
    11  
    12  test('ProgressPopup.50%', () => {
    13      const state = renderer.create(<ProgressPopup onClose={() => {
    14      }} percentage={50} title={'My Title'}/>);
    15  
    16      expect(state).toMatchSnapshot();
    17  });
    18  
    19  test('ProgressPopup.100%', () => {
    20      const state = renderer.create(<ProgressPopup onClose={() => {
    21      }} percentage={100} title={''}/>);
    22  
    23      expect(state).toMatchSnapshot();
    24  });