linstula / ember-page-object

MIT License
45 stars 3 forks source link

Add utility methods to the base PageObject #9

Closed poteto closed 9 years ago

poteto commented 9 years ago

pause, embiggen and debug are sugar methods that allow for debugging and interacting with the test container in an intermediate step of a PageObject chain (POC).

For example, a certain acceptance test is breaking and you would like to visually inspect the DOM within a POC. To do so:

test('it does stuff', function(assert) {
  new SomePage(assert)
    .login()
    .embiggen()
    .pause() // or debug() for a breakpoint
    .doStuff();
});
linstula commented 9 years ago

embiggen()!