Exemple #1
0
        public void CanEditAnExistingNote()
        {
            NotesPage.GoTo();
            NotesPage.SelectNote(NoteCreator.PreviousTitle);

            Driver.Wait(TimeSpan.FromSeconds(1));

            Assert.IsTrue(NewNotePage.IsInUpgradeMode(), "Wasn't in upgrade mode");
            Assert.AreEqual(NoteCreator.PreviousTitle, NotesPage.Title, "Title din not match");
        }
        public void Can_create_new_note()
        {
            LoginPage.Open(_driver);
            LoginPage.Login(_driver, admin);
            AdminPage.GoToNewNote(_driver);

            var noteUrl = NewNotePage.CreateNote(_driver, exampleNote);

            AdminPage.Logout(_driver);

            NotePage.Open(_driver, noteUrl);
            Assert.True(NotePage.Is(_driver, exampleNote));
        }