https://cypress.io logo
I would consider Page Objects to test some part of...
# best-practices
e
I would consider Page Objects to test some part of a feature:
Copy code
ts
export class User {
  login() {}
  logout() {}
}

export class Customer {
  addItemToCart() {}
  fillDeliveryAdress() {}
}
It depends on your test. If you just need to access a button used in several tests, I would create a custom command to make it chainable.