Ejemplo n.º 1
0
        public void Uploaded_Document_Available_In_Review_Page()
        {
            string theme = TestContext.DataRow["theme"].ToString();

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme(theme).Pick();

            Assert.IsTrue(UploadDocsPage.CheckLastVersionAvailability(), "The last version of your theme is not available in the Reviews Page.");

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme("").PickByNumber("44");
        }
Ejemplo n.º 2
0
        public void Can_Choose_A_Theme_By_Title()
        {
            string theme = TestContext.DataRow["theme"].ToString();

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme(theme).Pick();

            Assert.IsTrue(UploadDocsPage.IsAt, "Wasn't at Upload Doc page");
            Assert.AreEqual(UploadDocsPage.Theme, "Избраната тема е " + theme, "Theme did not match the picked theme!");

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme("").PickByNumber("44");
        }
Ejemplo n.º 3
0
        public void Can_Show_Uploaded_Document()
        {
            string theme   = TestContext.DataRow["theme"].ToString();
            string comment = TestContext.DataRow["comment"].ToString();

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme(theme).Pick();

            UploadDocsPage.ViewModeActivate(comment);
            UploadDocsPage.ViewModeExit();

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme("").PickByNumber("44");
        }
Ejemplo n.º 4
0
        public void Can_Upload_A_Document()
        {
            string theme    = TestContext.DataRow["theme"].ToString();
            string doc_path = TestContext.DataRow["doc_path"].ToString();
            string comment  = TestContext.DataRow["comment"].ToString();

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme(theme).Pick();

            UploadDocsPage.UploadDoc(doc_path).WithComment(comment).Upload("");

            PickThemesPage.GoTo();
            PickThemesPage.PickTheme("").PickByNumber("44");
        }
Ejemplo n.º 5
0
        public void Base_UI_Elements_Inspection()
        {
            Assert.IsTrue(DashboardPage.IsAt, "Wrong DashboardPage label.");

            PickThemesPage.GoTo();
            Assert.IsTrue(PickThemesPage.IsAt, "Wrong PickThemesPage label.");

            UploadDocsPage.GoTo();
            Assert.IsTrue(UploadDocsPage.IsAt, "Wrong UploadDocsPage label.");

            ReviewPage.GoTo();
            Assert.IsTrue(ReviewPage.IsAt, "Wrong ReviewPage label.");

            Navigation.Logout.Select();
            Assert.IsTrue(LoginPage.IsAt, "Wrong LoginScreen label.");
        }
Ejemplo n.º 6
0
        public void Referats_Upload()
        {
            string userName = TestContext.DataRow["pf_userName"].ToString();
            string password = TestContext.DataRow["pf_password"].ToString();
            string theme    = TestContext.DataRow["pf_theme"].ToString();
            string zipName  = TestContext.DataRow["pf_zipName"].ToString();

            LoginPage.GoTo(getUrl);
            LoginPage.LoginAs(userName).WithPassword(password).Login();
            PickThemesPage.GoTo();
            PickThemesPage.PickTheme(theme).Pick();

            Assert.IsTrue(UploadDocsPage.IsAt, "Wasn't at Upload Doc page");
            Assert.AreEqual(UploadDocsPage.Theme, "Избраната тема е " + theme, "Theme did not match the picked theme!");

            UploadDocsPage.UploadDoc(zipName).WithComment("").Upload(getRefOutPath);
        }