|
34 | 34 | import org.testng.annotations.DataProvider;
|
35 | 35 | import org.testng.annotations.Test;
|
36 | 36 |
|
37 |
| -import ru.mystamps.web.Url; |
38 | 37 | import ru.mystamps.web.tests.page.AbstractPage;
|
39 | 38 | import ru.mystamps.web.tests.page.AddSeriesPage;
|
40 | 39 | import ru.mystamps.web.tests.page.InfoSeriesPage;
|
@@ -271,74 +270,6 @@ public void commentShouldBeStripedFromLeadingAndTrailingSpaces() {
|
271 | 270 | assertThat(page).field("comment").hasValue("example comment");
|
272 | 271 | }
|
273 | 272 |
|
274 |
| - @Test(groups = "logic", dependsOnGroups = { "std", "valid", "invalid", "misc" }) |
275 |
| - public void shouldCreateSeriesWithAllFieldsFilled() { |
276 |
| - String expectedPageUrl = Url.INFO_SERIES_PAGE.replace("{id}", "\\d+"); |
277 |
| - String expectedImageUrl = Url.SITE + Url.GET_IMAGE_PAGE.replace("{id}", "\\d+"); |
278 |
| - String expectedQuantity = "3"; |
279 |
| - String day = "4"; |
280 |
| - String month = "5"; |
281 |
| - String year = "1999"; |
282 |
| - String expectedCountryName = "Italy"; |
283 |
| - String expectedCategoryName = validCategoryName; |
284 |
| - String expectedComment = "Any text"; |
285 |
| - |
286 |
| - page.fillCategory(expectedCategoryName); |
287 |
| - page.fillCountry(expectedCountryName); |
288 |
| - |
289 |
| - page.showDateOfRelease(); |
290 |
| - page.fillDay(day); |
291 |
| - page.fillMonth(month); |
292 |
| - page.fillYear(year); |
293 |
| - |
294 |
| - page.fillQuantity(expectedQuantity); |
295 |
| - page.fillPerforated(false); |
296 |
| - |
297 |
| - page.showCatalogNumbers(); |
298 |
| - |
299 |
| - page.fillMichelNumbers("101, 102, 103"); |
300 |
| - page.fillMichelPrice("10.5"); |
301 |
| - |
302 |
| - page.fillScottNumbers("110, 111, 112"); |
303 |
| - page.fillScottPrice("1000"); |
304 |
| - |
305 |
| - page.fillYvertNumbers("120, 121, 122"); |
306 |
| - page.fillYvertPrice("8.11"); |
307 |
| - |
308 |
| - page.fillGibbonsNumbers("130, 131, 132"); |
309 |
| - page.fillGibbonsPrice("400.335"); |
310 |
| - |
311 |
| - page.showComment(); |
312 |
| - page.fillComment(expectedComment); |
313 |
| - |
314 |
| - page.fillImage(SAMPLE_IMAGE_PATH); |
315 |
| - |
316 |
| - AbstractPage next = page.submit(); |
317 |
| - assertThat(next).isInstanceOf(InfoSeriesPage.class); |
318 |
| - |
319 |
| - InfoSeriesPage nextPage = (InfoSeriesPage)next; |
320 |
| - |
321 |
| - assertThat(nextPage.getCurrentUrl()).matches(expectedPageUrl); |
322 |
| - |
323 |
| - List<String> imageUrls = nextPage.getImageUrls(); |
324 |
| - assertThat(imageUrls).hasSize(1); |
325 |
| - assertThat(imageUrls.get(0)).matches(expectedImageUrl); |
326 |
| - |
327 |
| - assertThat(nextPage.getCategory()).isEqualTo(expectedCategoryName); |
328 |
| - assertThat(nextPage.getCountry()).isEqualTo(expectedCountryName); |
329 |
| - assertThat(nextPage.getDateOfRelease()).isEqualTo("04.05.1999"); |
330 |
| - assertThat(nextPage.getQuantity()).isEqualTo(expectedQuantity); |
331 |
| - assertThat(nextPage.getPerforated()).isEqualTo(tr("t_no")); |
332 |
| - |
333 |
| - assertThat(nextPage.getMichelCatalogInfo()).isEqualTo("#101-103 (10.5 EUR)"); |
334 |
| - assertThat(nextPage.getScottCatalogInfo()).isEqualTo("#110-112 (1000 USD)"); |
335 |
| - assertThat(nextPage.getYvertCatalogInfo()).isEqualTo("#120-122 (8.11 EUR)"); |
336 |
| - // TODO: disable rounding mode |
337 |
| - assertThat(nextPage.getGibbonsCatalogInfo()).isEqualTo("#130-132 (400.34 GBP)"); |
338 |
| - |
339 |
| - assertThat(nextPage.getComment()).isEqualTo(expectedComment); |
340 |
| - } |
341 |
| - |
342 | 273 | @Test(groups = "logic", dependsOnGroups = { "std", "valid", "invalid", "misc" })
|
343 | 274 | public void shouldIgnoreDuplicatedCatalogNumbers() {
|
344 | 275 | page.fillCategory(validCategoryName);
|
|
0 commit comments