//[Test, Description("Verify User is able to view changes made for blank draft in Left are reflected in Rightside tabs ")] public void TC_06_ValidationWhenUserEditedBlankDraftInLeftGDocGetsReflectedInRightSideTabs() { try { String TestName = (TestContext.CurrentContext.Test.Name.ToString()); String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString(); CreateTest(TestName, description); String expected = "SELENIUM_TEST_123"; AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver); String path1 = TakeScreenshot(driver); auth.SuccessScreenshot(path1, "Verifying Edited Blank Draft Contains String: " + expected + " in GDOC Right"); auth.HtmlRightTab(); String path2 = TakeScreenshot(driver); auth.SuccessScreenshot(path2, "Verifying Edited Blank Draft Contains String: " + expected + " in HTML Right"); auth.MDRightTab(); String path3 = TakeScreenshot(driver); auth.SuccessScreenshot(path3, "Verifying Edited Blank Draft Contains String: " + expected + " in MD Right"); auth.PreviewRightTab(); String path4 = TakeScreenshot(driver); auth.SuccessScreenshot(path4, "Verifying Edited Blank Draft Contains String: " + expected + "in Preview Right"); auth.GdocRightTab(); } catch (AssertionException) { fail("Assertion failed"); throw; } }
//[Test, Description("Verify User Able to Validate Live Draft and Continuous Update Of Live Draft")] public void TC_03_ValidateUserAbleToCreateLiveDraftAndCanContinuouslyUpdateIt() { try { String TestName = (TestContext.CurrentContext.Test.Name.ToString()); String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString(); CreateTest(TestName, description); AuthoringScreenEnhancements auth1 = new AuthoringScreenEnhancements(driver); auth1.LeftLiveDraft(); System.Threading.Thread.Sleep(5000); auth1.MDLeftTab(); System.Threading.Thread.Sleep(5000); auth1.RightLiveDraft(); System.Threading.Thread.Sleep(5000); auth1.MDRightTab(); System.Threading.Thread.Sleep(5000); CreateDraftPage createDraft1 = new CreateDraftPage(driver); String path3 = TakeScreenshot(driver); createDraft1.SuccessScreenshot(path3, "Validating a Live Draft in both Editor Panes with some content"); CreateDraftPage createDraft2 = new CreateDraftPage(driver); System.Threading.Thread.Sleep(5000); createDraft2.ClickNewDraft(); System.Threading.Thread.Sleep(5000); String draftName1 = createDraft2.EnterValidDraftName(); createDraft2.ClickOnBlankDraft(); System.Threading.Thread.Sleep(5000); String path4 = TakeScreenshot(driver); createDraft2.SuccessScreenshot(path4, "Creating a Blank Draft"); createDraft2.CreateDraft(); System.Threading.Thread.Sleep(15000); System.Threading.Thread.Sleep(5000); AddProjectPage addProject2 = new AddProjectPage(driver); addProject2.ClickNotifications(); System.Threading.Thread.Sleep(5000); String path5 = TakeScreenshot(driver); createDraft2.SuccessScreenshot(path5, "Created a Blank Draft"); addProject2.BackToProject(); System.Threading.Thread.Sleep(5000); AuthoringScreenEnhancements auth2 = new AuthoringScreenEnhancements(driver); auth2.LeftDraftDropDown(draftName1); System.Threading.Thread.Sleep(5000); auth2.RightDraftDropDown(draftName1); System.Threading.Thread.Sleep(5000); auth2.ClickAcceptDraftToLive(); System.Threading.Thread.Sleep(15000); System.Threading.Thread.Sleep(5000); addProject2.ClickNotifications(); System.Threading.Thread.Sleep(5000); String path6 = TakeScreenshot(driver); createDraft2.SuccessScreenshot(path6, "Created a Blank Live Draft"); addProject2.BackToProject(); System.Threading.Thread.Sleep(5000); auth2.LeftLiveDraft(); System.Threading.Thread.Sleep(5000); auth2.MDLeftTab(); System.Threading.Thread.Sleep(5000); auth2.RightLiveDraft(); System.Threading.Thread.Sleep(5000); auth2.MDRightTab(); System.Threading.Thread.Sleep(5000); String path7 = TakeScreenshot(driver); createDraft2.SuccessScreenshot(path7, "Validating Updated Live Draft in both Editor Panes with blank message"); } catch (AssertionException) { fail("Assertion failed"); throw; } }