public void CheckIfCancelButtonInArticleDeleteModeIsWorking() { var articleDeletePage = new ArticleDeletePage(driver); articleDeletePage.LogIn(); articleDeletePage.NavigateTo(); articleDeletePage.CancelButtonClick(); articleDeletePage.AssertYouAreOnListPage(); }
public void CheckIfDeleteButtonInArticleDeleteModeIsWorking() { var articleDeletePage = new ArticleDeletePage(driver); articleDeletePage.LogIn(); articleDeletePage.NavigateTo(); articleDeletePage.DeleteButtonClick(); articleDeletePage.AssertArticleIsDeleted(); }
public void CheckIfContentIsEditableInArticleDeleteMode() { var articleDeletePage = new ArticleDeletePage(driver); articleDeletePage.LogIn(); articleDeletePage.NavigateTo(); articleDeletePage.EditContent(); articleDeletePage.AssertContentIsNotChanged(); }
public void SetUp() { // Driver driver = GetChromeDriver(); // Maximize The Window driver.Manage().Window.Maximize(); // Home Page homePage = new HomePage(driver); // Login Page loginPage = new LoginPage(driver); // Registration Page registrationPage = new RegistrationPage(driver); // Profile Page profilePage = new ProfilePage(driver); // Create Article Page createArticlePage = new CreateArticlePage(driver); // Article Main Page articleMainPage = new ArticleMainPage(driver); // Article Delete Page articleDeletePage = new ArticleDeletePage(driver); // Article Edit Page articleEditPage = new ArticleEditPage(driver); //Path to directory depending of the Domain Name (local or azure) if (Environment.UserDomainName == "WARLUS" || Environment.UserDomainName == "KAMEN" || Environment.UserDomainName == "GAS_MT_MACHINE") //On local machine { directoryPath = Directory.GetCurrentDirectory() + "/../../.."; } else // On azure { directoryPath = Directory.GetCurrentDirectory(); } }