Skip to content

Commit a5bed04

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

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

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

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

src/test/robotframework/series/import/request-validation.robot

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Submit request with invalid url
2424
Submit Form id:import-series-form
2525
Element Text Should Be id:url.errors Value must be a valid URL
2626

27+
Submit request with an unsupported site
28+
Input Text id:url http://example.com
29+
Submit Form id:import-series-form
30+
Element Text Should Be id:url.errors Import from this site isn't supported
31+
2732
*** Keywords ***
2833
Before Test Suite
2934
Open Browser ${SITE_URL}/account/auth ${BROWSER}

0 commit comments

Comments
 (0)