Skip to content

Commit

Permalink
Merge pull request #421 from ro0gr/refresh-whats-po
Browse files Browse the repository at this point in the history
Refresh whats po
  • Loading branch information
san650 authored Aug 7, 2018
2 parents bdfeb64 + cf1c7f2 commit 2fdc026
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ test('my awesome test', async function(assert) {

## So, What Is a Page Object?

Ember, and more specifically `ember-testing`, provides a DSL that simplifies the creation and validation of conditions on our tests.
One of the problems with testing a DOM is repetetive CSS selectors used to look up elements. In some cases, this repetition seems like a smell.

One of the problems with acceptance and integration testing is that many of the CSS selectors used to look up elements are repeated across tests. In some cases, this repetition seems like a smell.
Sometimes DOM interactions complexity can even make it hard to remember what we were actually trying to test. This confusion can lead to difficulties updating tests and collaborating with others.

In some cases the complexity of selectors makes it hard to remember what we were actually trying to test. This confusion can lead to difficulties updating tests and collaborating with others.

A widely used design pattern comes to the rescue: page objects. The main idea behind this pattern is to encapsulate in an object the page or component structure being tested, hiding the details of its HTML structure and exposing only the semantic structure of the page.
A widely used design pattern comes to the rescue: page objects. The main idea behind this pattern is to allow building convenient test interfaces for your pages and components being tested.

This addon allows you to define page objects in a declarative fashion, making it simple to model complex pages and components.

Expand Down

0 comments on commit 2fdc026

Please sign in to comment.