diff --git a/modules/websubmit/web/Makefile.am b/modules/websubmit/web/Makefile.am index 52e1f2a4f..a1218afb7 100644 --- a/modules/websubmit/web/Makefile.am +++ b/modules/websubmit/web/Makefile.am @@ -1,41 +1,43 @@ ## $Id$ ## This file is part of CDS Invenio. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 CERN. ## ## CDS Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## CDS Invenio is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. +## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDS Invenio; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. SUBDIRS = admin docdir = $(localstatedir)/www doc_DATA = approve.py \ publiline.py \ yourapprovals.py \ yoursubmissions.py testdir = $(libdir)/webtest/invenio test_DATA = test.pdf \ test.jpg \ + test.tar.gz \ test_submit_article.html \ test_submit_poetry.html \ test_submit_picture.html \ test_submit_book.html \ - test_submit_book_approval.html + test_submit_tar_gz.html \ + test_submit_book_approval.html EXTRA_DIST = $(doc_DATA) $(test_DATA) CLEANFILES = *~ *.tmp diff --git a/modules/websubmit/web/test.tar.gz b/modules/websubmit/web/test.tar.gz new file mode 100644 index 000000000..d71f114cd Binary files /dev/null and b/modules/websubmit/web/test.tar.gz differ diff --git a/modules/websubmit/web/test_submit_tar_gz.html b/modules/websubmit/web/test_submit_tar_gz.html new file mode 100644 index 000000000..542b6f458 --- /dev/null +++ b/modules/websubmit/web/test_submit_tar_gz.html @@ -0,0 +1,132 @@ + + + +
+ + +test_submit_article | ||
open | +http://localhost | ++ |
clickAndWait | +link=login | ++ |
type | +p_un | +jekyll | +
type | +p_pw | +j123ekyll | +
clickAndWait | +action | ++ |
clickAndWait | +link=Submit | ++ |
clickAndWait | +link=Demo Article Submission | ++ |
click | +comboARTICLE | ++ |
clickAndWait | +//input[@value='Submit New Record'] | ++ |
type | +DEMOART_REP | +Test-Ref-001 Test-Ref-002 |
+
type | +DEMOART_TITLE | +Test article document title | +
type | +DEMOART_AU | +Author1, Firstname1 Author2, Firstname2 |
+
type | +DEMOART_ABS | +This is a test abstract. It has some more lines. ...and some empty lines. And it finishes here. |
+
type | +DEMOART_NUMP | +1234 | +
select | +DEMOART_LANG | +label=French | +
type | +DEMOART_DATE | +11/01/2001 | +
type | +DEMOART_KW | +test keyword1 test keyword2 test keyword3 |
+
type | +DEMOART_NOTE | +I don't think I have any additional comments. But maybe I'll input some quotes here: " ' ` and the rest. |
+
type | +DEMOART_FILE | +/opt/cds-invenio/lib/webtest/invenio/test.tar.gz | +
clickAndWait | +endS | ++ |
verifyTextPresent | +Submission Complete! |
+ + |
verifyTextPresent | +our document has the following reference(s): DEMO-ARTICLE | ++ |
clickAndWait | +link=logout | ++ |