From 2e74fdf36e9c37ca806d958ae5df650dbf113bca Mon Sep 17 00:00:00 2001 From: John Ferguson Smart Date: Mon, 1 Jun 2015 17:02:08 +1000 Subject: [PATCH] Simplified some tests --- .../WhenBrowsingAWebSiteUsingPageObjects.java | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/serenity-core/src/test/java/net/serenitybdd/core/webdriver/integration/WhenBrowsingAWebSiteUsingPageObjects.java b/serenity-core/src/test/java/net/serenitybdd/core/webdriver/integration/WhenBrowsingAWebSiteUsingPageObjects.java index c465b6cfcd..868540aa75 100644 --- a/serenity-core/src/test/java/net/serenitybdd/core/webdriver/integration/WhenBrowsingAWebSiteUsingPageObjects.java +++ b/serenity-core/src/test/java/net/serenitybdd/core/webdriver/integration/WhenBrowsingAWebSiteUsingPageObjects.java @@ -146,26 +146,7 @@ public void should_find_text_contained_in_page() { public void should_not_find_text_not_contained_in_page() { indexPage.shouldContainText("This text is not in the pages"); } - - @Test - public void should_select_in_multiple_select_lists_correctly() { - indexPage.selectMultipleItemsFromDropdown(indexPage.multiselect, "Label 1", "Label 3"); - - Set selectedLabels = indexPage.getSelectedOptionLabelsFrom(indexPage.multiselect); - assertThat(selectedLabels.size(), is(2)); - assertThat(selectedLabels, hasItems("Label 1", "Label 3")); - } - - @Test - public void should_select_values_in_multiple_select_lists_correctly() { - - indexPage.selectMultipleItemsFromDropdown(indexPage.multiselect, "Label 1", "Label 3"); - - Set selectedValues = indexPage.getSelectedOptionValuesFrom(indexPage.multiselect); - assertThat(selectedValues.size(), is(2)); - assertThat(selectedValues, hasItems("1", "3")); - } - + @Test public void should_return_selected_value_in_select() {