Skip to content

Commit

Permalink
Simplified some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Jun 1, 2015
1 parent ebb8471 commit 2e74fdf
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> 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<String> selectedValues = indexPage.getSelectedOptionValuesFrom(indexPage.multiselect);
assertThat(selectedValues.size(), is(2));
assertThat(selectedValues, hasItems("1", "3"));
}


@Test
public void should_return_selected_value_in_select() {

Expand Down

0 comments on commit 2e74fdf

Please sign in to comment.