Skip to content

Commit

Permalink
docs(ngController): fix e2e test
Browse files Browse the repository at this point in the history
The changes made in 2a156c2 caused this test
to fail. The test was trying to find an anchor with specified text but the
anchor had changed to a button.
  • Loading branch information
petebacondarwin committed Apr 14, 2015
1 parent 2a156c2 commit bee6cbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ng/directive/ngController.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@
* expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('[email protected]');
*
* firstRepeat.element(by.linkText('clear')).click();
* firstRepeat.element(by.buttonText('clear')).click();
*
* expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('');
*
* container.element(by.linkText('add')).click();
* container.element(by.buttonText('add')).click();
*
* expect(container.element(by.repeater('contact in settings.contacts').row(2))
* .element(by.model('contact.value'))
Expand Down Expand Up @@ -210,12 +210,12 @@
* expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('[email protected]');
*
* firstRepeat.element(by.linkText('clear')).click();
* firstRepeat.element(by.buttonText('clear')).click();
*
* expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
* .toBe('');
*
* container.element(by.linkText('add')).click();
* container.element(by.buttonText('add')).click();
*
* expect(container.element(by.repeater('contact in contacts').row(2))
* .element(by.model('contact.value'))
Expand Down

0 comments on commit bee6cbf

Please sign in to comment.