Skip to content

Commit e777cbe

Browse files
committed
test: admin is able to add a comment to a series.
Relate to #785 Part of #1410
1 parent dacbeec commit e777cbe

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/main/frontend/src/components/AddCommentForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class AddCommentFormView extends React.PureComponent {
9292
const hasValidationErrors = validationErrors.length > 0;
9393
return (
9494
<div className="col-sm-12 form-group">
95-
<form className={ `form-horizontal ${hasValidationErrors ? 'has-error' : ''}` }
95+
<form id="add-comment-form" className={ `form-horizontal ${hasValidationErrors ? 'has-error' : ''}` }
9696
onSubmit={ handleSubmit }>
9797
<div
9898
id="add-comment-failed-msg"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*** Settings ***
2+
Documentation Verify scenarios of adding a comment 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-comment logic
8+
9+
*** Test Cases ***
10+
Add a comment
11+
Input Text id:comment A comment
12+
Submit Form id:add-comment-form
13+
Wait Until Page Does Not Contain id:add-comment-form
14+
Element Text Should Be id:comment A comment
15+
16+
*** Keywords ***
17+
Before Test Suite
18+
Open Browser ${SITE_URL}/account/auth ${BROWSER}
19+
Register Keyword To Run On Failure Log Source
20+
Log In As login=admin password=test
21+
Go To ${SITE_URL}/series/4

0 commit comments

Comments
 (0)