Esempio n. 1
0
 public void TC007_Menu_Add_Location_Screen_Open_with_CorrectContent_User_touch_Add_Location_Menu_Option(string element, string expectedText)
 {
     if (stepMenuOptions.verify_menu_displayed() == false)
     {
         Assert.That(stepMenuOptions.click_menu_button_by_class(), Is.True, "Menu Button is not found");
     }
     Assert.That(stepMenuOptions.click_add_location_button_by_id(), Is.True, "Add Location button cannot be found");
     Assert.That(stepAddLocation.verify_element_displayed_add_location_screen_by_id(element), Is.True, element + " is not displayed in the add screen");
     Assert.That(stepAddLocation.get_element_add_ocation_screen_text_element_by_id(element), Is.EqualTo(expectedText), element + " is displayed with the incorrect text");
 }
Esempio n. 2
0
        public void TC010_Add_Location_Suggestions_Location_Displayed_Matches_Text_Entered(string location)
        {
            if (stepMenuOptions.verify_menu_displayed() == false)
            {
                Assert.That(stepMenuOptions.click_menu_button_by_class(), Is.True, "Menu Button is not found");
            }


            Assert.That(stepMenuOptions.click_add_location_button_by_id(), Is.True, "Add Location button is not found");
            Assert.That(stepAddLocation.fill_up_serch_text_field(location), Is.True, "The text field cannot be found");

            Assert.That(stepAddLocation.verify_element_displayed_add_location_screen_by_id("searchlist"), Is.True, "Suggestion search list is not displayed");
            Assert.That(stepAddLocation.get_amount_location_suggestions(), Is.GreaterThan(0), "There is no suggestions displayed in Suggestion list");

            for (int i = 0; i < stepAddLocation.get_amount_location_suggestions(); i++)
            {
                Assert.That(stepAddLocation.get_string_location_selected_by_index(i).Substring(0, location.Length).ToLower(), Is.EqualTo(location.ToLower()), "Suggestion does not match with the string entered in the text field");
            }
        }