Example #1
0
 public void ThenVerifyOutcomesAreAsExpected()
 {
     if (CommonConstants.A_B_C_D_E.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + ConfirmPageIsAdded);
         Assert.IsTrue(EditorPage.IsPackageAdded("NUnit"));
     }
     else if (CommonConstants.F_G_H_I_J_K.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + CheckShareLinkContains);
         Assert.IsTrue(EditorPage.GetShareLink().Contains(CommonConstants.DotnetFiddleWebsiteUrl));
     }
     else if (CommonConstants.L_M_N_O_P.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + CheckOptionsPanelIsHidden);
         Assert.IsFalse(EditorPage.IsOptionsSideBarWindowVisible());
     }
     else if (CommonConstants.Q_R_S_T_U.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + CheckLoginWindowAppeared);
         Assert.IsTrue(EditorPage.IsLoginModalVisible());
     }
     else if (CommonConstants.V_W_X_Y_Z.Contains(_firstNameFirstChar))
     {
         _scenarioContext.Add(CommonConstants.Step, "=> " + ConfirmBackToEditorButtonAppeared);
         Assert.IsTrue(EditorPage.IsUserNavigatedToGettingStartedPage());
     }
 }