import { render } from '@testing-library/vue';
import { describe, expect, test } from 'vitest';
import UiSnackbar from '../UiSnackbar.vue';

describe('UiSnackbar', () => {
  test('applies the wrapper default containerAriaLabel', () => {
    const { getByLabelText } = render(UiSnackbar);
    expect(getByLabelText(/Notifications/i)).toBeInTheDocument();
  });

  test('forwards a custom containerAriaLabel', () => {
    const { getByLabelText } = render(UiSnackbar, {
      props: { containerAriaLabel: 'App messages' },
    });
    expect(getByLabelText(/App messages/i)).toBeInTheDocument();
  });
});
