# Cypress: Should we apply the page object model to optimize the framework?

DevFeed: [Cypress: Should we apply the page object model to optimize the framework?](<https://devfeed.tech/articles/cypress-should-we-apply-the-page-object-model-to-optimize-the-framework-57409.md>)

Original publisher: [Read original article](<https://www.thoughtworks.com/insights/blog/testing/Cypress-should-we-apply-the-page-object-model-to-optimize-the-framework>)

Author: Thuc Van Hoang

Published: 2024-10-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Thoughtworks Insights](<https://devfeed.tech/sources/thoughtworks-insights.md>)

Topics: [Cypress](<https://devfeed.tech/topics/cypress.md>), [Page Object](<https://devfeed.tech/topics/page-object.md>), [test](<https://devfeed.tech/topics/test.md>)

Tags: [apps](<https://devfeed.tech/tags/apps.md>), [automated-testing](<https://devfeed.tech/tags/automated-testing.md>), [cypress](<https://devfeed.tech/tags/cypress.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [page-object](<https://devfeed.tech/tags/page-object.md>), [pom](<https://devfeed.tech/tags/pom.md>), [reuse](<https://devfeed.tech/tags/reuse.md>)

## AI overview

This tutorial explains how to use the Page Object Model to organize Cypress code for end-to-end, integration, and unit testing. It covers maintenance, code reuse, readability, a LoginPage implementation, and drawbacks of the pattern.

## Source excerpt

Cypress: Should we apply the page object model to optimize the framework?