diff --git a/modules/webcomment/web/test_comment_add.html b/modules/webcomment/web/test_comment_add.html index 1c90d4ead..e59577784 100644 --- a/modules/webcomment/web/test_comment_add.html +++ b/modules/webcomment/web/test_comment_add.html @@ -1,192 +1,162 @@
test_comment_add | |||
open | http://localhost/record/1 | ||
clickAndWait | link=Discussion | ||
type | msg | -This cannot go in. | +This is a test comment. |
clickAndWait | //input[@value='Add comment'] | ||
verifyTextPresent | -Before you add your comment | -- | |
open | -http://localhost | -- | |
clickAndWait | -link=login | -- | |
type | p_un | romeo | |
type | p_pw | r123omeo | |
clickAndWait | action | ||
verifyTextPresent | +Your comment was successfully added. | ++ | |
open | http://localhost/record/1 | ||
clickAndWait | link=Discussion | ||
verifyTextPresent | -Your nickname, romeo, will be displayed as author of this comment | +romeo wrote | |
type | msg | This is a test comment. | |
clickAndWait | -//input[@value='Add comment'] | -- | |
verifyTextPresent | -Your comment was successfully added. | -- | |
clickAndWait | -link=Back to record | -- | |
verifyTextPresent | -romeo wrote | -- | |
verifyTextPresent | -This is a test comment. | +Your nickname, romeo, will be displayed as author of this comment | |
clickAndWait | link=logout | ||
open | http://localhost | ||
clickAndWait | link=login | ||
type | p_un | juliet | |
type | p_pw | j123uliet | |
clickAndWait | action | ||
open | http://localhost/record/1 | ||
clickAndWait | link=Discussion | ||
clickAndWait | link=Reply | ||
type | msg | This is a test reply. | |
verifyTextPresent | Your nickname, juliet, will be displayed as author of this comment | ||
clickAndWait | //input[@value='Add comment'] | ||
clickAndWait | link=Back to record | ||
verifyTextPresent | juliet wrote | ||
verifyTextPresent | This is a test reply. | ||
clickAndWait | link=logout |
test_comment_delete_report | ||||
open | http://localhost/ | |||
clickAndWait | link=login | |||
type | p_un | romeo | ||
type | p_pw | r123omeo | ||
clickAndWait | action | |||
open | http://localhost/record/1 | |||
clickAndWait | link=Discussion | |||
type | msg | Test comment | ||
clickAndWait | //input[@value='Add comment'] | |||
verifyTextPresent | Your comment was successfully added. | |||
clickAndWait | link=Back to record | |||
verifyTextPresent | romeo | |||
verifyTextPresent | Test comment | |||
clickAndWait | link=logout | |||
click | -link=login here | +open | +http://localhost | ++ |
clickAndWait | +link=login | |||
type | p_un | juliet | ||
type | p_pw | j123uliet | ||
click | action | |||
open | http://localhost/record/1 | |||
click | link=Discussion | |||
type | msg | Another comment | ||
click | //input[@value='Add comment'] | |||
click | link=Back to record | |||
click | //a[@href='http://pcuds30.cern.ch/admin/webcomment/webcommentadmin.py/del_single_com_auth?ln=en&id=2'] | |||
verifyTextPresent | Comment deleted by the author | |||
open | /admin/webcomment/webcommentadmin.py/del_single_com_auth?ln=en&id=1 | |||
verifyTextPresent | Authorization failure | |||
open | /record/1/comments/display?ln=en&do=od | |||
clickAndWait | //a[@href='http://pcuds30.cern.ch/record/1/comments/report?ln=en&comid=1&do=od&ds=all&nb=100&p=1&referer=http://pcuds30.cern.ch/record/1/comments/display'] | |||
verifyTextPresent | Your feedback has been recorded, many thanks | |||
clickAndWait | link=logout | |||
open | http://localhost/record/1 | |||
click | link=Discussion | |||
clickAndWait | link=Report abuse | |||
clickAndWait | //a[@href='http://pcuds30.cern.ch/record/1/comments/report?ln=en&comid=1&do=od&ds=all&nb=100&p=1&referer=http://pcuds30.cern.ch/record/1/comments/display'] | |||
verifyTextPresent | If you already have an account, please login using the form below. |
test_review_add | ||||
open | http://localhost/record/1 | |||
clickAndWait | link=Discussion | |||
clickAndWait | link=Reviews | |||
select | score | value=4 | ||
type | note | -This is a test review title that cannot go in | +This is a test review title | |
type | msg | -This is a test review body that cannot go in. | +This is a test review body. | |
clickAndWait | //input[@value='Add Review'] | |||
verifyTextPresent | -Before you add your comment | -- | ||
open | -http://localhost | -- | ||
clickAndWait | -link=login | -- | ||
type | p_un | jekyll | ||
type | p_pw | j123ekyll | ||
clickAndWait | action | |||
open | -http://localhost/record/1 | -- | ||
clickAndWait | -link=Discussion | -- | ||
clickAndWait | -link=Reviews | -- | ||
select | -score | -value=4 | -||
type | -note | -This is a test review title | -||
type | -msg | -This is a test review body. | -||
clickAndWait | -//input[@value='Add Review'] | -- | ||
verifyTextPresent | review | |||
verifyTextNotPresent | -Before you add your comment | +open | +http://localhost/record/1 | |
clickAndWait | -link=Reviews | +link=Discussion | ||
clickAndWait | +link=Reviews | ++ | ||
verifyTextPresent | This is a test review title | |||
verifyTextPresent | Reviewed by jekyll | |||
verifyTextPresent | This is a test review body. | |||
clickAndWait | link=logout |