Skip to content

expectScreenshot fixture -> Error: Can't find slug for test #51

@SwinX

Description

@SwinX

Describe the bug

Seems that this fixture requires testSlug fixture to be also used.

Details:

A quick search through the code revealed utilities for working with slugs, and most importantly, the testSlug fixture, which automatically delivers slugs to the internal map. I connected it and expected it to work, but got a new error: Error: Can't extract slug from title "should work

It wasn't immediately clear what the problem was, as I assumed the slug would be generated automatically based on the test header (and had briefly seen the corresponding code in lib). Upon closer inspection, it became clear that the fixture required manual specification of the slug at the end of the test header: should work [test-slug]. The fixture then worked correctly.

Steps to reproduce

No response

Environment

Ubuntu, playwright-tools@1.1.1

Validations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions