|
21 | 21 |
|
22 | 22 | import org.springframework.beans.factory.annotation.Value; |
23 | 23 |
|
24 | | -import org.testng.SkipException; |
25 | 24 | import org.testng.annotations.AfterClass; |
26 | 25 | import org.testng.annotations.BeforeClass; |
27 | 26 | import org.testng.annotations.BeforeMethod; |
28 | 27 | import org.testng.annotations.Test; |
29 | 28 |
|
30 | | -import org.openqa.selenium.StaleElementReferenceException; |
31 | | - |
32 | | -import static org.fest.assertions.api.Assertions.assertThat; |
33 | | - |
34 | | -import ru.mystamps.web.Url; |
35 | | -import ru.mystamps.web.tests.WebDriverFactory; |
36 | 29 | import ru.mystamps.web.tests.page.AddCountryPage; |
37 | | -import ru.mystamps.web.tests.page.AddSeriesPage; |
38 | 30 |
|
39 | 31 | import static ru.mystamps.web.tests.TranslationUtils.tr; |
40 | 32 | import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat; |
41 | 33 |
|
42 | 34 | public class WhenAdminAddCountry extends WhenAnyUserAtAnyPageWithForm<AddCountryPage> { |
43 | 35 |
|
44 | | - private static final String TEST_COUNTRY_NAME_EN = "Russia"; |
45 | | - |
46 | 36 | @Value("${valid_admin_login}") |
47 | 37 | private String validAdminLogin; |
48 | 38 |
|
@@ -89,23 +79,6 @@ public void countryNameRuWithAllowedCharactersShouldBeAccepted() { |
89 | 79 | assertThat(page).field("nameRu").hasNoError(); |
90 | 80 | } |
91 | 81 |
|
92 | | - @Test(groups = "logic") |
93 | | - public void countryShouldBeAvailableForChoosingAtPageWithSeries() { |
94 | | - page.open(Url.ADD_SERIES_PAGE); |
95 | | - |
96 | | - AddSeriesPage seriesPage = new AddSeriesPage(WebDriverFactory.getDriver()); |
97 | | - |
98 | | - try { |
99 | | - assertThat(seriesPage.getCountryFieldValues()).contains(TEST_COUNTRY_NAME_EN); |
100 | | - |
101 | | - } catch (StaleElementReferenceException ex) { |
102 | | - throw new SkipException( |
103 | | - "Skipped because it fails with StaleElementReferenceException " |
104 | | - + "(see #280): " + ex.getMessage() |
105 | | - ); |
106 | | - } |
107 | | - } |
108 | | - |
109 | 82 | @Override |
110 | 83 | protected void checkServerResponseCode() { |
111 | 84 | // Ignore this check because server always returns 403 for anonymous user and our test suite |
|
0 commit comments