Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Acceptance tests with ember-paper ( OBSOLETE )

$
0
0

@GELight wrote:

Hi,

I try to write an acceptance test for our login. When I try to use the test method click(myButtonElement) nothing happens.

My tests:

click(myButtonElement)
click(find('[data-test-submit]"))

What is the correct way to make a click on an element? This is the snippet from my test:

...

andThen(function() {
    assert.equal(find('[data-test-loggedin-profile]').length, 0);
    click(find('[data-test-login-form-submit]')); // After this line nothing happens ...?!?
});

andThen(function() {
    assert.equal(currentURL(), '/');
    assert.equal(find('[data-test-loggedin-profile]').length, 1);
});

...

Greetings, Mario

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles