示例#1
0
        public void RemoveDocument()
        {
            Page.Authentication.LogIn();
            Page.Passport.OpenYaDisk();
            Page.Disk.CreateNewDoc(docname);
            WebDriverFactory.CloseWindow();
            WebDriverFactory.SwitchToFirstWindow();
            Page.Disk.RemoveDoc(docname);
            WebDriverFactory.ReloadThePage();
            bool isNewDocExist = Page.Disk.IsDocExist(docname);

            Assert.IsFalse(isNewDocExist);
        }
示例#2
0
        public void UpdateDocument()
        {
            Page.Authentication.LogIn();
            Page.Passport.OpenYaDisk();
            Page.Disk.CreateNewDoc(docname);
            WebDriverFactory.CloseWindow();
            WebDriverFactory.SwitchToFirstWindow();
            Page.Disk.UpdateDoc(updatedcontent);
            WebDriverFactory.CloseWindow();
            WebDriverFactory.SwitchToFirstWindow();
            string updatedDocContent = Page.Disk.GetUpdatedDoc();

            Assert.AreEqual(OtherConstants.updatedcontent, updatedDocContent);
        }
示例#3
0
        public void MoveDocument()
        {
            Page.Authentication.LogIn();
            Page.Passport.OpenYaDisk();
            Page.Disk.CreateSecondFolder();
            Page.Disk.CreateNewFolder();
            Page.Disk.NavigateNewFolder();
            Page.Disk.CreateNewDoc(docname);
            WebDriverFactory.CloseWindow();
            WebDriverFactory.SwitchToFirstWindow();
            Page.Disk.MoveDoc();
            Page.Disk.NavigateSecondFolder();
            bool isNewDocExist = Page.Disk.IsDocExist(docname);

            Assert.IsTrue(isNewDocExist);
        }