Rayrun
← Back to Discord Forum

has anyone started community fixtures project?

leblancmenesesposted in #help-playwright
Open in Discord
leblancmeneses

Example: https://github.com/microsoft/playwright/discussions/17813 I can see something similar to this being part of the project.

it would also need to solve this question: https://github.com/microsoft/playwright/discussions/14688

possible solutions: typescript variadic tuple types. where "base" is last argument in all enabled*fixtures.

composeFixtures(base, [
  enableFailTestIfLogHasWarningOrErrors.bind(null, [(log) => msg.text().includes('ignore')])
])

or should i just copy and paste : ).

This thread is trying to answer question "Has anyone started a community fixtures project?"

9 replies
leblancmeneses

i have a working version of composeFixture. Here is what i have in my codebase

const mytest = composeFixtures(base, [enableFailTestIfLogHasWarningOrError.bind(null, [])])
leblancmeneses

fyi: composeFixtures was added in 1.93 as mergeTests. With the same example given. A #shout-out would have been appreciated.

Doubt it that developera saw your messages here, they are not really active in discord. Multiple people can arrive at the same ideas and implementation.

Or maybe they did, who knows

leblancmeneses

I would agree if the requests on the GitHub discussion weren't so old and if the exact example I gave wasn't used.

Why the github links 404?

leblancmeneses

they must have deleted the discussion channel recently.

leblancmeneses

I was planning to put this in a contrib project and to help the community aggregate common fixtures. Without rep sharing, promotion is difficult.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].