Skip to content

Commit

Permalink
update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanfang committed Nov 27, 2017
1 parent 836fe52 commit 4e109c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions smart-note/e2e/addnote/addnote.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ describe('Addnote page', () => {
//let tag = page.getTag();
//let tagList = page.getTagList();

noteTitle.sendKeys('This is a note for demo3');
noteTitle.sendKeys('This is a note for demo4');
//tag.click();

expect(noteTitle.getAttribute('value')).toEqual('This is a note for demo3');
expect(noteTitle.getAttribute('value')).toEqual('This is a note for demo4');
noteTitle.sendKeys(protractor.Key.ENTER);
sleep();
noteTitle.clear();
noteTitle.sendKeys('This is another note for demo3');
noteTitle.sendKeys('This is another note for demo4');
sleep();
});

Expand Down
4 changes: 2 additions & 2 deletions smart-note/e2e/tags/tags.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ describe('Tag Page', () => {

it('should be able to add the new tag to the tag list', () => {
var newTag = page.getNewTag()
newTag.sendKeys('DemoTag');
expect(newTag.getAttribute('value')).toEqual('DemoTag');
newTag.sendKeys('SmartNote');
expect(newTag.getAttribute('value')).toEqual('SmartNote');
sleep();
newTag.sendKeys(protractor.Key.ENTER);
});
Expand Down

0 comments on commit 4e109c4

Please sign in to comment.