Open ryan-case-ml opened 4 days ago
I actually tried patching this myself to use the test id in the file name instead of the full test file path when creating the archive files and it seems to work nice. lmk if you'd be interested in me cutting a PR for that
Describe the bug I have some pretty descriptive playwright tests because I like to be as declarative as possible to explain the test cases. Usually I have a test file named after the feature, a describe block to group tests by a set of mock data they are testing against, and then the test description itself. My tests are organized in sub directories by module as well (e.g. @core). This makes for some pretty long titlePaths at times. It would be nice if we either truncated long titlePaths by default, or exposed a config prop to use just the title instead. UPDATE - see comment below for a possible better suggestion
To Reproduce Steps to reproduce the behavior:
@playwright/testv1.41.0
export default defineConfig({ / Tell playwright where our tests can be found / testDir: './e2e/tests', outputDir: 'e2e/test-outputs/test-results', projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, ], )}