Skip to content

Commit e52f730

Browse files
committed
test: a url should be from one of the supported sites when we import a series sale
Fix #1079
1 parent 083dcc8 commit e52f730

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/ru/mystamps/web/feature/series/importing/HasSiteParser.java

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import static java.lang.annotation.RetentionPolicy.RUNTIME;
3030

3131
// @todo #690 Series import: add integration test to check that URL can be parsed
32-
// @todo #1027 Series sale import: add integration test to check that URL can be parsed
3332
/**
3433
* Validates that the URL can be parsed by one of the site parsers.
3534
*/

src/test/robotframework/series/sales/import/validation.robot

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ Import a series sale with too long url
2828
Wait Until Element Is Visible id:series-sale-url.errors
2929
Element Text Should Be id:series-sale-url.errors Value is greater than allowable maximum of 767 characters
3030

31+
Import a series sale from an unsupported site
32+
Input Text id:series-sale-url http://example.com
33+
Submit Form id:import-series-sale-form
34+
Wait Until Element Is Visible id:series-sale-url.errors
35+
Element Text Should Be id:series-sale-url.errors Import from this site isn't supported
36+
3137
*** Keywords ***
3238
Before Test Suite
3339
Open Browser ${SITE_URL}/account/auth ${BROWSER}

0 commit comments

Comments
 (0)