-
Notifications
You must be signed in to change notification settings - Fork 16
/
maned_form.yml
102 lines (102 loc) · 4.32 KB
/
maned_form.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# ~~ ManEdApplicationForm:FunctionalTest -> ManEdApplicationForm:Page ~~
suite: New Application Form
testset: ManEd Form
tests:
- title: Form Overview
context:
role: admin
steps:
- step: Go to the admin Applications search at /admin/applications
- step: Select an application that is not in the "Accepted" or "Rejected" state,
and click "Review application"
results:
- The managing editor view application form is displayed
- '"Unlock and Close" is available'
- The Quick Reject feature is available
- The ability to assign to an editor group and associate editor is available
- A "SAVE" button is available
- Status, Re-assign publisher account, Continuation Information and Subject Classification
sections are available
- Award the Seal is available
- The main application form questions are available
- The Notes section is available
- step: Assign an editor group
results:
- The "Group" pull-down asks you to type three characters.
- step: Choose any group
results:
- The associate editors and editor are shown in the Individual dropdown
- step: Select an editor from the "Individual" pull-down
results:
- The editor is selected
- step: Open the Subject Classifier and assign two subject classifications
- step: Click Add subjects
results:
- The two subjects you selected show as 'Selected'
- step: Open the subject classifier again and start typing a subject in the subject search box (eg Biology)
results:
- All terms that include your subject are shown and can be selected
- step: Assign one subject that way and then assign an owner to the application
- step: Make a superficial modification to the application metadata
- step: Click "Add new note" and enter some text into the new note textarea
- step: Click "SAVE"
results:
- A message tells you that you cannot save the application because it contains
some invalid fields
- The form scrolls you down to a question which has a missing answer.
- step: Complete the question with the missing answer and 'Save'
results:
- A message at the top of the form tells you that you can only choose one or two
subject classifications
- step: Remove one subject classification
- step: Click "Unlock & Close"
results: Confirmation dialog is displayed warning you about unsaved changes
- step: Click "Stay on Page" and then 'Save'
results:
- The form saves
- The changes you applied, both to the form, and in the functionality box, have
been saved
- The form saved without requiring answers to the ORCiD and I4OA questions.
- step: Click "Unlock and Close"
results:
- The page closes, and you are able to return to the search interface
- title: Note features for admin
context:
role: admin
steps:
- step: Prepare two admin accounts (admin1 and admin2), they both can access
to the same Application (e.g. /admin/application/1234)
- step: Login as `admin1`
- step: Go to Application page at `/admin/application/1234`
- step: Click "ADD" button in "Notes" area
results:
- New note UI is displayed for you to fill in
- step: Fill in the note
- step: Click "Save" button
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `admin2`
- step: Go to Application page at `/editor/application/1234`
results:
- You can see the note that you have created before with `admin1`
- step: Attempt to click into the note area and edit it
results:
- you are unable to edit the note
- step: Attempt to click the "Remove" button
results:
- You are unable to delete the note
- step: Click "copy" button next to one of the fields (eg. Title)
results:
- Confirmation with fields value is displayed for 3 seconds
- step: Attempt to paste the value (use separate editor)
results:
- Correct value is pasted