import React from 'react';
import { renderInAppContext } from '@theorchard/suite-testing';
import AddSongButton, { CLASSNAME } from '../addSongButton';

describe('<AddSongButton>', () => {
    const renderComponent = () => renderInAppContext(<AddSongButton />);

    test('renders button with text', () => {
        const component = renderComponent();
        const button = component.getByTestId(CLASSNAME);

        expect(button).toBeVisible();
        expect(button).toHaveTextContent('+ repertoire.addSong');
    });
});
