From 4e109c4835726f2a7d589ea175af2da6d39c2a1e Mon Sep 17 00:00:00 2001 From: Shanfang Date: Sun, 26 Nov 2017 20:06:18 -0500 Subject: [PATCH] update e2e test --- smart-note/e2e/addnote/addnote.e2e-spec.ts | 6 +++--- smart-note/e2e/tags/tags.e2e-spec.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/smart-note/e2e/addnote/addnote.e2e-spec.ts b/smart-note/e2e/addnote/addnote.e2e-spec.ts index fa22b731..29704b9b 100644 --- a/smart-note/e2e/addnote/addnote.e2e-spec.ts +++ b/smart-note/e2e/addnote/addnote.e2e-spec.ts @@ -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(); }); diff --git a/smart-note/e2e/tags/tags.e2e-spec.ts b/smart-note/e2e/tags/tags.e2e-spec.ts index 45ce8794..530c2889 100644 --- a/smart-note/e2e/tags/tags.e2e-spec.ts +++ b/smart-note/e2e/tags/tags.e2e-spec.ts @@ -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); });