---
title: "Discussion on \"Playwright - Fixtures\" | Hashnode"
description: "Discussion on \"Playwright - Fixtures\". Fixtures"
url: "https://hashnode.com/posts/playwright-fixtures/63b691ba739fb787e25a570f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Playwright - Fixtures](https://puppo92.hashnode.dev/playwright-fixtures?utm_source=hashnode&utm_medium=feed)

Fixtures

Jan 5, 2023 · 4 min read · puppo92.hashnode.dev  
Read the article

-   [#e2e](https://hashnode.com/tag/e2e)
-   [#playwright](https://hashnode.com/tag/playwright)

## Written by

[Luca Del Puppo](https://hashnode.com/@Puppo92)

@Puppo92 · Treviso, IT

  
[View profile](https://hashnode.com/@Puppo92)

Google Developer Expert, GitKraken Ambassador, Former Microsoft MVP, AI Native Engineer at NearForm\_ and JavaScript enthusiastic.

Full Stack Developer and JavaScript and TypeScript enthusiastic.

## Responses 1

Markdown supported · ⌘↵ to post

[Willy De la Cruz Sierra](https://hashnode.com/@wdelacruz)

[Feb 1, 2023](https://hashnode.com/posts/playwright-fixtures/63b691ba739fb787e25a570f/comment/63da97c7b7131763ef1af11f)

Thanks for this post, Luca. Very insightful. I'm still not clear on how fixtures could be composed from other fixtures and how can multiple fixtures could be used in a test. The PW documentation on fixtures is not very extensive unfortunately.

[Luca Del Puppo](https://hashnode.com/@Puppo92)

[Feb 1, 2023](https://hashnode.com/posts/playwright-fixtures/63b691ba739fb787e25a570f/comment/63da97c7b7131763ef1af11f#reply-63dab9031699246a25c21d97)

Hi [Willy De la Cruz Sierra](https://hashnode.com/@wdelacruz), thanks for your feedback. I know the doc is not extensive at this moment, unfortunately. I tried to create new examples in this [branch](https://github.com/Puppo/playwright-series/tree/05-fixture-dive), so please take a look there. In a nutshell, the idea is to create small functions that return or do something. Then you can expose them directly as your base test function, or you can create a new one on each test file in base on your tests. For instance, you can create a reusable fixture, if this fixture is required in most of the tests, or create a specific one if the fixture is just for one or two tests in the same file. Let me know if the examples are clear; in case, I'll try to be more exhaustive.
