import React from 'react';
import { render, screen } from '@testing-library/react';
import { LinearLoadIndicator } from './LinearLoadIndicator';
describe('LinearLoadIndicator', function () {
    it('should render LinearProgress with overlay, non transparent and non relative positioned', function () {
        render(React.createElement(LinearLoadIndicator, null));
        var indicator = screen.getByTestId('reltio-linear-load-indicator');
        expect(indicator).toBeInTheDocument();
        expect(indicator).toHaveClass('loadingOverlay');
        expect(indicator).not.toHaveClass('transparent');
        expect(indicator).not.toHaveClass('relativePosition');
    });
    it('should render LinearProgress with transparent background', function () {
        render(React.createElement(LinearLoadIndicator, { transparent: true }));
        expect(screen.getByTestId('reltio-linear-load-indicator')).toHaveClass('transparent');
    });
    it('should render LinearProgress with relative position', function () {
        render(React.createElement(LinearLoadIndicator, { relativePosition: true }));
        expect(screen.getByTestId('reltio-linear-load-indicator')).toHaveClass('relativePosition');
    });
    it('should render LinearProgress with custom className', function () {
        render(React.createElement(LinearLoadIndicator, { className: "customClassName" }));
        expect(screen.getByTestId('reltio-linear-load-indicator')).toHaveClass('customClassName');
    });
});
