```ts
// button.component.spec.ts

import { render, screen } from '@testing-library/angular';

import ButtonComponent from './button.component';

//👇 Imports a specific story for the test
import { Primary } from './Button.stories';

test('renders the button in the primary state ', async () => {
  await render(ButtonComponent, {
    componentProperties: Primary.args,
  });
  expect(screen.getByRole('button').classList.contains('storybook-button--primary')).toBeTruthy();
});
```
