-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathmaned_form.yml
More file actions
146 lines (146 loc) · 6.45 KB
/
Copy pathmaned_form.yml
File metadata and controls
146 lines (146 loc) · 6.45 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# ~~ 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
- The Journal Labels section is available, offering one option for "Subscribe to Open"
- 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
- 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
- title: Reject application that is a continuation
steps:
- step: go to /testdrive/reject
- step: login as ProfessorFrostfire (you may want to log in using an incognito window)
- step: open "Advances in Cold Lava Mechanics" application (available on your dashboard)
- step: change the status to "Rejected" in the "Change status" input
- step: save the application
results:
- application is saved
- a warning appears with information about an older journal and a link in "focus" mode
- the form is dimmed; interactions outside the warning are blocked
- the "Got it!" button is displayed at the bottom
- step: click the link in the warning
results:
- the "Annals of Cryovolcanic Ecology" form opens in a new tab
- step: Unlock & Close the journal form, close the tab, and return to the application form
- step: click the "Got it" button
results:
- the warning is now in standard mode
- the "Got it!" button is hidden
- the application is active and can be unlocked & closed
- step: Unlock & Close
- step: open the application again (navigate to `/admin/application/<application_id>` or search for "Advances in Cold Lava Mechanics" in `/admin/applications`)
results:
- the warning about the older journal is displayed at the top
- the application is active and editable
- it can be unlocked & closed
- step: change the status back to "In progress" and save (do not close)
results:
- the warning disappears
- step: once saved, click the "Quick Reject" button
- step: choose any rejection reason and click "Quick Reject"
results:
- application is saved
- the warning appears again at the top
- the form is dimmed; interactions outside the warning are blocked
- step: click "Got it"
results:
- the warning returns to standard mode
- the application is active and editable
- it can be unlocked & closed
- step: change any information (except status) and save
results:
- the application is saved correctly
- the warning remains in standard mode