public void Init() { Driver.Initialize(); LoginPage.GoTo(); LoginPage.LoginAs("*****@*****.**").Continue().WithPassword("georgiana").Login(); //create a basic note NoteCreator.CreateNote(); }
public void Init() { Driver.Initialize(); LoginPage.GoTo(); LoginPage.LoginAs("*****@*****.**").Continue().WithPassword("georgiana").Login(); //create a basic note //NewNotePage.GoTo(); //NewNotePage.CreateNote("This is search note title").WithContent("Hi, this is the content").Done(); NoteCreator.CreateNote(); }
public void AddedNotesShowUp() { //Go to notes, get notes count, store LeftNavigation.Notes.Select(); NotesPage.StoreCount(); //Add a new note NoteCreator.CreateNote(); //Go to Notes, get new note count LeftNavigation.Notes.Select(); Assert.AreEqual(NotesPage.PreviousNoteCount + 1, NotesPage.CurrentNoteCount, "Count of notes did not increase"); //Check for added note Assert.IsTrue(NotesPage.DoesNoteExistWithTitle(NoteCreator.PreviousTitle)); //Trash note (clean up) NotesPage.TrashNote(NoteCreator.PreviousTitle); Assert.AreEqual(NotesPage.PreviousNoteCount, NotesPage.CurrentNoteCount, "Coundn't trah note"); }
public void CanCreateABasicNote() { NoteCreator.CreateNote(); Assert.AreEqual(NotesPage.Title, NoteCreator.PreviousTitle, "Title did not match new note."); }