Added confirmation dialog for deleting items.
[emufront] / doc / tests.txt
1 1. Start EmuFront
2 -----------------
3 - if database already exists move/remove it:
4
5         $ mv ~/emufront.db.sqlite ~/emufront.db.sqlite.bak
6
7 - start EmuFront from command line
8
9         $ emufront
10
11 > EmuFront main window opens
12         > File, Config & Help menu is shown
13         > empty combo box for selecting setups and emulators is shown
14         > empty area for filtered media image containers is shown
15
16 2. Set temporary directory
17 --------------------------
18 - Select 'Config->Temp dir'
19 > A file selector is opened, only folders can be selected
20 - Select a folder
21 > A messagebox is shown telling that the Temporary directory has been updated to selected folder.
22
23 3. Platform
24 -----------
25
26 3.1. Add platform
27 -----------------
28 - Select 'Config->Set platforms'
29 > New view is opened with a title describing about setting platforms
30         > 'Add' and 'OK' buttons active
31         > 'Edit' and 'Delete' buttons disabled
32 - Click 'Add' button
33 > New entry is created to the platform table view
34         > The name field in the new row is activated for editing
35 - Type a platform name, e.g. 'Commodore 128' and press enter
36 > The name field presents the platform name
37         >editing is disabled 
38 - Add a couple of more platforms (>= 3)
39
40 3.2. Edit platform
41 ----------------
42
43 3.2.1. Edit platform by double clicking first row
44 -----------------------------------------------
45 - double click a platform name in the first row 
46 > The name field in the first row is activated for editing
47 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
48 > The name field presents the platform name
49         >editing is disabled 
50
51 3.2.2. Edit platform by double clicking 2nd row
52 ---------------------------------------------
53 - double click a platform name in the second row 
54 > The name field in the second row is activated for editing
55 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
56 > The name field presents the platform name
57         >editing is disabled 
58
59 3.2.3. Edit platform by double clicking last row
60 ----------------------------------------------
61 - double click a platform name in the last row 
62 > The name field in the last row is activated for editing
63 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
64 > The name field presents the platform name
65         >editing is disabled 
66
67 3.2.4. Edit platform using 'Edit' button, 1st row
68 -----------------------------------------------
69 - Select first row 
70 > Selected row is highlighted
71 > Edit button is activated
72 - Click edit button
73 > The name field in the selected is activated for editing
74 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
75 > The name field in the selected row presents the platform name
76         >editing is disabled 
77
78 3.2.5. Edit platform using 'Edit' button, 2nd row
79 -----------------------------------------------
80 - Select 2nd row 
81 > Selected row is highlighted
82 > Edit button is activated
83 - Click edit button
84 > The name field in the selected row is activated for editing
85 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
86 > The name field in the selected row presents the platform name
87         >editing is disabled 
88
89 3.2.6. Edit platform using 'Edit' button, last row
90 -----------------------------------------------
91 - Select last row 
92 > Selected row is highlighted
93 > Edit button is activated
94 - Click edit button
95 > The name field in the selected row is activated for editing
96 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
97 > The name field in the selected row presents the platform name
98         >editing is disabled 
99
100 3.3. Delete platform
101 --------------------
102
103 3.3.1. Delete platform, 2nd row
104 -------------------------------
105 - Select 2nd row 
106 > Selected row is highlighted
107 > Delete button is activated
108 - Click Delete button
109 > Confirmation dialog is presented
110 - Select 'No'
111 > Deleting is aborted and the platform entry remains
112 - Select the same row, click delete button, answer 'Yes'
113 > Platform was removed from the table view
114
115 3.3.1. Delete platform, last row
116 -------------------------------
117 - Select last row 
118 > Selected row is highlighted
119 > Delete button is activated
120 - Click Delete button
121 > Confirmation dialog is presented
122 - Select 'No'
123 > Deleting is aborted and the platform entry remains
124 - Select the same row, click delete button, answer 'Yes'
125 > Platform was removed from the table view
126
127 3.3.1. Delete platform, 1st row
128 -------------------------------
129 - Select first row 
130 > Selected row is highlighted
131 > Delete button is activated
132 - Click Delete button
133 > Confirmation dialog is presented
134 - Select 'No'
135 > Deleting is aborted and the platform entry remains
136 - Select the same row, click delete button, answer 'Yes'
137 > Platform was removed from the table view
138
139
140
141 4.1. Edit platform by double clicking first row
142 -----------------------------------------------
143 - double click a platform name in the first row 
144 > The name field in the first row is activated for editing
145 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
146 > The name field presents the platform name
147         >editing is disabled 
148
149 4.2. Edit platform by double clicking 2nd row
150 ---------------------------------------------
151 - double click a platform name in the second row 
152 > The name field in the second row is activated for editing
153 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
154 > The name field presents the platform name
155         >editing is disabled 
156
157 4.3. Edit platform by double clicking last row
158 ----------------------------------------------
159 - double click a platform name in the last row 
160 > The name field in the last row is activated for editing
161 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
162 > The name field presents the platform name
163         >editing is disabled 
164
165 4.4. Edit platform using 'Edit' button, 1st row
166 -----------------------------------------------
167 - Select first row 
168 > Selected row is highlighted
169 > Edit button is activated
170 - Click edit button
171 > The name field in the selected is activated for editing
172 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
173 > The name field in the selected row presents the platform name
174         >editing is disabled 
175
176 4.5. Edit platform using 'Edit' button, 2nd row
177 -----------------------------------------------
178 - Select 2nd row 
179 > Selected row is highlighted
180 > Edit button is activated
181 - Click edit button
182 > The name field in the selected row is activated for editing
183 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
184 > The name field in the selected row presents the platform name
185         >editing is disabled 
186
187 4.6. Edit platform using 'Edit' button, last row
188 -----------------------------------------------
189 - Select last row 
190 > Selected row is highlighted
191 > Edit button is activated
192 - Click edit button
193 > The name field in the selected row is activated for editing
194 - Change the name, eg. 'Commodore 128' -> 'Commodore 64' and press enter
195 > The name field in the selected row presents the platform name
196         >editing is disabled 
197
198
199 X. Setupview
200 ------------
201
202 1:
203 - Add new setup when no platform or media types are yet added
204 Result:
205 - Shows error that no platform or media types are not added
206 - New row is not created
207
208 2:
209 - Add new setup when any platforms are not yet added
210 Result:
211 - Shows error that any platform is not available 
212 - New row is not created
213
214 3:
215 - Add new setup when any media types are not yet added
216 Result:
217 - Shows error that any media type is not available 
218 - New row is not created