Skip to content

Commit 7a27875

Browse files
committed
test: admin is able to add a release year to a series.
Relate to #1343 Part of #1410
1 parent ae1e174 commit 7a27875

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

src/main/frontend/src/components/AddReleaseYearForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class AddReleaseYearFormView extends React.PureComponent {
105105

106106
return (
107107
<div className="col-sm-12 form-group">
108-
<form className={ `form-horizontal ${hasValidationErrors ? 'has-error' : ''}` }
108+
<form id="add-release-year-form" className={ `form-horizontal ${hasValidationErrors ? 'has-error' : ''}` }
109109
onSubmit={ handleSubmit }>
110110
<div
111111
id="add-release-year-failed-msg"

src/main/java/ru/mystamps/web/feature/site/ResourceUrl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class ResourceUrl {
3232
public static final String STATIC_RESOURCES_URL = "https://stamps.filezz.ru";
3333

3434
// MUST be updated when any of our resources were modified
35-
public static final String RESOURCES_VERSION = "v0.4.3.12";
35+
public static final String RESOURCES_VERSION = "v0.4.3.13";
3636

3737
// CheckStyle: ignore LineLength for next 15 lines
3838
private static final String CATALOG_UTILS_JS = "/public/js/" + RESOURCES_VERSION + "/CatalogUtils.min.js";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*** Settings ***
2+
Documentation Verify scenarios of adding a release year to a series
3+
Library SeleniumLibrary
4+
Resource ../../auth.steps.robot
5+
Suite Setup Before Test Suite
6+
Suite Teardown Close Browser
7+
Force Tags series add-year logic
8+
9+
*** Test Cases ***
10+
Add a release year
11+
Select From List By Value id:release-year 1995
12+
Submit Form id:add-release-year-form
13+
Wait Until Page Does Not Contain id:add-release-year-form
14+
Wait Until Page Contains Element id:issue_date
15+
Element Text Should Be id:issue_date 1995
16+
17+
*** Keywords ***
18+
Before Test Suite
19+
Open Browser ${SITE_URL}/account/auth ${BROWSER}
20+
Register Keyword To Run On Failure Log Source
21+
Log In As login=admin password=test
22+
Go To ${SITE_URL}/series/4

0 commit comments

Comments
 (0)