public void SaveNewDeisgnFromEdit() { try { test = extent.CreateTest("_6822_SaveNewDesignName"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnSave(); CreateDesignPage.ClickOnSaveInSaveDesignPopup(); CreateDesignPage.ClickOnNoInOverWritePopup(); CreateDesignPage.ClearTextInSaveDesignPopup(); CreateDesignPage.SaveDesignWithNewName("template"); Driver.Quit(); } catch (Exception e) { test.Fail("_6822_SaveNewDesignName" + e); Assert.Fail(); } }
public void VerifyPromptToSaveDesign() { try { test = extent.CreateTest("_6824_Prompt_SaveDesign"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnNextStep(); CreateDesignPage.ClickOnYes(); CreateDesignPage.ClearTextInSaveDesignPopup(); CreateDesignPage.SaveDesignWithNewName("template1"); SelectProductDetailsPage.VerifySelectProductDetailsPage(); Driver.Quit(); } catch (Exception e) { test.Fail("_6824_Prompt_SaveDesign" + e); } }
public void CancelCreateDesign() { try { test = extent.CreateTest("_6702_EditNegative"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.ClickOnCancel(); CreateDesignPage.ClickOnNoFromCancel(); Driver.Quit(); } catch (Exception e) { test.Fail("_6702_Edit_Negative failed" + e); } }
public void SaveDesign() { try { test = extent.CreateTest("_6203_Save"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.VerifySaveDesign("template1"); test.Pass("_6203_Save passed"); Driver.Quit(); } catch (Exception e) { test.Fail("_6203_Save failed" + e); } }
public void ClickOnCancelNextStep() { try { test = extent.CreateTest("_6828_CancelFromCreateDeisgnPage"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnCancel(); CreateDesignPage.ClickOnYesFromCancel(); CreateDesignPage.VerifyExistenceOfSaveDesignPopup(); Driver.Quit(); } catch (Exception e) { test.Fail("_6828_CancelFromCreateDeisgnPage" + e); } }
public void ClickOnNoFromNextStep() { try { test = extent.CreateTest("_6827_NegativeCasesNextStep"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnNextStep(); CreateDesignPage.ClickOnNoFromNextStep(); SelectProductDetailsPage.VerifySelectProductDetailsPage(); Driver.Quit(); } catch (Exception e) { test.Fail("_6827_NegativeCasesNextStep" + e); } }
public void OverWriteDesignNameFromEdit() { try { test = extent.CreateTest("_6821_OverrideSaveDesign"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); //CreateDesignPage.ClickOnYesInOverWritePopup(); CreateDesignPage.OverWriteExistingNameWithYes(); CreateDesignPage.VerifyConfirmationMsg(); Driver.Quit(); } catch (Exception e) { test.Fail("_6821_OverrideSaveDesign" + e); Assert.Fail(); } }