private void CloseTeachingTipByLightDismiss()
 {
     if (elements.GetIsOpenCheckBox().ToggleState != ToggleState.Off)
     {
         elements.GetLstTeachingTipEvents().Tap();
         WaitForTipClosed();
     }
 }
예제 #2
0
 private void CloseTeachingTipByLightDismiss()
 {
     if (elements.GetIsOpenCheckBox().ToggleState != ToggleState.Off)
     {
         elements.GetLstTeachingTipEvents().Tap();
         if (PlatformConfiguration.IsOsVersionGreaterThanOrEqual(OSVersion.Redstone5))
         {
             WaitForUnchecked(elements.GetIsIdleCheckBox());
         }
         WaitForUnchecked(elements.GetIsOpenCheckBox());
         WaitForChecked(elements.GetIsIdleCheckBox());
     }
 }
 // The test UI has a list box which the teaching tip populates with messages about which events have fired and other useful
 // Debugging info. This method returns the message at the provided index, which helps testing that events were received in
 // the expected order.
 private ListBoxItem GetTeachingTipDebugMessage(int index)
 {
     return(elements.GetLstTeachingTipEvents().Items[index]);
 }