test-runner icon indicating copy to clipboard operation
test-runner copied to clipboard

[Feature] Use storyName in test name

Open IanVS opened this issue 3 years ago • 0 comments

Describe the bug

I'm not sure to call this a bug or a feature, but I find myself wishing that the story name displayed in the test output matched storyName rather than the name of the exported CSF constant. This would make it easier to find the test in the storybook sidebar, in cases where there's a custom storyName that's being used.

Steps to reproduce the behavior

  1. Create a CSF story with a custom storyName that does not match the story's exported name.
  2. Run test-runner
  3. Notice that the test name displayed does not match the storyName

Additional context

This is a pretty minor request, but wanted to document it since I did find it tripping me up once or twice.

IanVS avatar Mar 02 '22 15:03 IanVS