public void CleanUp() { //delete the basic note created in the setup NotesPage.TrashNote(NoteCreator.PreviousTitle); Driver.Close(); }
public void CleanUp() { //Delete the note added NotesPage.TrashNote(NoteCreator.PreviousTitle); Driver.Close(); }
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"); }