public void WhenILogin(string UserRole) { if (UserRole == "Administrator") { StrapiLoginPage.Login("*****@*****.**", Config.AdminAccountPassword); } if (UserRole == "Author") { StrapiLoginPage.Login("*****@*****.**", Config.AuthorAccountPassword); } if (UserRole == "Editor") { StrapiLoginPage.Login("*****@*****.**", Config.EditorAccountPassword); } }
public static void BeforeFeatureLogin() { StrapiLoginPage.Navigate(); StrapiLoginPage.Login("*****@*****.**", Config.AdminAccountPassword); }