---
title: "Discussion on \"🔧 Building Playwright Framework Step By Step - Implementing POM as Fixture and Auth User Session\" | Hashnode"
description: "Discussion on \"🔧 Building Playwright Framework Step By Step - Implementing POM as Fixture and Auth User Session\". Fixtures in Playwright provide a powerful mechanism to set up the environment for your tests, manage resources, and share common objects or context"
url: "https://hashnode.com/posts/building-playwright-framework-step-by-step-implementing-pom-as-fixture-and-auth-user-session/68414dc98937946ccce6a76d"
---

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

Discussion

# [🔧 Building Playwright Framework Step By Step - Implementing POM as Fixture and Auth User Session](https://idavidov.eu/building-playwright-framework-step-by-step-implementing-pom-as-fixture-and-auth-user-session?utm_source=hashnode&utm_medium=feed)

Fixtures in Playwright provide a powerful mechanism to set up the environment for your tests, manage resources, and share common objects or context

Jun 5, 2025 · 4 min read · idavidov.eu  
Updated Jul 8, 2025  
Read the article

-   [#playwright](https://hashnode.com/tag/playwright)
-   [#testing](https://hashnode.com/tag/testing)
-   [#test-automation](https://hashnode.com/tag/test-automation)
-   [#automation](https://hashnode.com/tag/automation)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#learning](https://hashnode.com/tag/learning)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#qa](https://hashnode.com/tag/qa)
-   [#qa-testing](https://hashnode.com/tag/qa-testing)

## Written by

[Ivan Davidov](https://hashnode.com/@idavidov)

@idavidov · Sofia, Bulgaria

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

♾️ Agentic Quality Engineer · Creator of the Agentic Playwright Scaffold · Founder of ArchQA · Global Agentic Playwright Test Automation Workshops · Trained 4k+ engineers

♾️ Agentic Quality Engineer · Creator of the Agentic Playwright Framework · Founder of ArchQA · Global Agentic Playwright Test Automation Workshops · Trained 4k+ engineers

## Responses 1

Markdown supported · ⌘↵ to post

[Misha](https://hashnode.com/@mpqa)

[Sep 11, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-implementing-pom-as-fixture-and-auth-user-session/68414dc98937946ccce6a76d/comment/68c2b1350d3dac0e889a062c)

Ivan, I'm your fan - I really like how you present material so clearly and simply.

But regarding this article, I didn’t understand what a fixture is and what the purpose of creating the files page-object-fixture.ts and test-options.ts is.

Is this some kind of variation of what Artem Bondar calls a page object manager in his course?

[Ivan Davidov](https://hashnode.com/@idavidov)

[Sep 12, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-implementing-pom-as-fixture-and-auth-user-session/68414dc98937946ccce6a76d/comment/68c2b1350d3dac0e889a062c#reply-68c3fef6118865a5e47ae3df)

Hi Misha, page-object-fixture.ts purpose is to create a separate fixture for every single POM we develop. In that case, we received already prepared classes in our test. The goal of test-options.ts is to merge all custom fixtures (POMs, API, etc) in a single test fixture, which we are going to use in our tests. The setup is inspired from Murat Ozcan but I think there some tweaks to it. You can see in the next article how these custom fixtures of POMs are used in actual tests.

Hope the answer is clear enough :)

[Misha](https://hashnode.com/@mpqa)

[Sep 12, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-implementing-pom-as-fixture-and-auth-user-session/68414dc98937946ccce6a76d/comment/68c2b1350d3dac0e889a062c#reply-68c4088046f47978d4d16765)

[Ivan Davidov](https://hashnode.com/@idavidov) Roger, thanks a lot!

[Ivan Davidov](https://hashnode.com/@idavidov)

[Sep 12, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-implementing-pom-as-fixture-and-auth-user-session/68414dc98937946ccce6a76d/comment/68c2b1350d3dac0e889a062c#reply-68c43270867a0ee79802ef16)

[Misha](https://hashnode.com/@mpqa) You are welcome 🙏
