var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React from 'react';
import BasicAttributeSelector from './BasicAttributeSelector';
import { render, screen } from '@testing-library/react';
describe('BasicAttributeSelector tests', function () {
    var selectedItem = {
        fieldName: 'selected',
        title: 'selectedField'
    };
    var defaultProps = {
        value: selectedItem,
        disabled: true,
        itemsGroups: [
            { attributes: [{ fieldName: 'field1', title: 'field1' }, selectedItem], title: '' },
            { attributes: [{ fieldName: 'field2', title: 'field2' }], title: '' }
        ],
        onSelect: jest.fn()
    };
    var setUp = function (props) {
        if (props === void 0) { props = defaultProps; }
        return render(React.createElement(BasicAttributeSelector, __assign({}, props)));
    };
    it('should provide disable props to AttributeTitle', function () {
        setUp();
        expect(screen.getByText(selectedItem.title)).toHaveClass('disabled');
    });
});
