/[openfoncier]/trunk/tests/053_nature_travaux.robot
ViewVC logotype

Annotation of /trunk/tests/053_nature_travaux.robot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14530 - (hide annotations)
Wed Apr 19 18:11:16 2023 UTC (21 months, 2 weeks ago) by gmalvolti
Original Path: branches/5.17.0-develop/tests/053_nature_travaux.robot
File size: 26074 byte(s)
fix: ajout des champs de fusion pour famille et nature de travaux et changement de l'ordre d'apparition des champs dans l'export csv
1 gmalvolti 14477 *** Settings ***
2     Documentation Test des événements d'instruction.
3    
4     # On inclut les mots-clefs
5     Resource resources/resources.robot
6     # On ouvre/ferme le navigateur au début/à la fin du Test Suite.
7     Suite Setup For Suite Setup
8     Suite Teardown For Suite Teardown
9    
10     *** Test Cases ***
11     Constitution du jeu de données
12     [Documentation] Constitue le jeu de données.
13    
14     Depuis la page d'accueil admin admin
15    
16     &{famille_travaux1} = Create Dictionary
17     ... libelle=Ravalement
18     ... code=RAV
19     ${famille_travaux1.id} = Ajouter la famille de travaux ${famille_travaux1}
20     Set Suite Variable ${famille_travaux1}
21    
22     &{famille_travaux2} = Create Dictionary
23     ... libelle=Transformation
24     ... code=TRA
25     ${famille_travaux2.id} = Ajouter la famille de travaux ${famille_travaux2}
26     Set Suite Variable ${famille_travaux2}
27    
28     &{famille_travaux3} = Create Dictionary
29     ... libelle=Restauration
30     ... code=RES
31     ${famille_travaux3.id} = Ajouter la famille de travaux ${famille_travaux3}
32     Set Suite Variable ${famille_travaux3}
33    
34     @{dit_nature_travauxft1} = Create List
35     ... DP - Initiale
36     ... CU - Initial
37     &{nature_travaux1ft1} = Create Dictionary
38     ... libelle=Ravalement d'établissement public
39     ... code=RAEP
40     ... famille_travaux=${famille_travaux1.libelle}
41     ${nature_travaux1ft1.id} = Ajouter la nature de travaux ${nature_travaux1ft1} ${dit_nature_travauxft1}
42     Set Suite Variable ${nature_travaux1ft1}
43    
44     &{nature_travaux2ft1} = Create Dictionary
45     ... libelle=Ravalement d'établissement privé
46     ... code=RAEP
47     ... famille_travaux=${famille_travaux1.libelle}
48     ${nature_travaux2ft1.id} = Ajouter la nature de travaux ${nature_travaux2ft1} ${dit_nature_travauxft1}
49     Set Suite Variable ${nature_travaux2ft1}
50    
51     &{nature_travaux3ft1} = Create Dictionary
52     ... libelle=Ravalement d'établissement privé 2
53     ... code=RAEP
54     ... famille_travaux=${famille_travaux1.libelle}
55     ${nature_travaux3ft1.id} = Ajouter la nature de travaux ${nature_travaux3ft1} ${dit_nature_travauxft1}
56     Set Suite Variable ${nature_travaux3ft1}
57    
58     &{nature_travaux4ft1} = Create Dictionary
59     ... libelle=Ravalement d'établissement privé 3
60     ... code=RAEP
61     ... famille_travaux=${famille_travaux1.libelle}
62     ${nature_travaux4ft1.id} = Ajouter la nature de travaux ${nature_travaux4ft1} ${dit_nature_travauxft1}
63     Set Suite Variable ${nature_travaux4ft1}
64    
65     &{nature_travaux5ft1} = Create Dictionary
66     ... libelle=Ravalement d'établissement privé 4
67     ... code=RAEP
68     ... famille_travaux=${famille_travaux1.libelle}
69     ${nature_travaux5ft1.id} = Ajouter la nature de travaux ${nature_travaux5ft1} ${dit_nature_travauxft1}
70     Set Suite Variable ${nature_travaux5ft1}
71    
72     &{nature_travaux6ft1} = Create Dictionary
73     ... libelle=Ravalement d'établissement privé 5
74     ... code=RAEP
75     ... famille_travaux=${famille_travaux1.libelle}
76     ${nature_travaux6ft1.id} = Ajouter la nature de travaux ${nature_travaux6ft1} ${dit_nature_travauxft1}
77     Set Suite Variable ${nature_travaux6ft1}
78    
79     &{nature_travaux7ft1} = Create Dictionary
80     ... libelle=Ravalement d'établissement privé 6
81     ... code=RAEP
82     ... famille_travaux=${famille_travaux1.libelle}
83     ${nature_travaux7ft1.id} = Ajouter la nature de travaux ${nature_travaux7ft1} ${dit_nature_travauxft1}
84     Set Suite Variable ${nature_travaux7ft1}
85    
86     &{nature_travaux8ft1} = Create Dictionary
87     ... libelle=Ravalement d'établissement privé 7
88     ... code=RAEP
89     ... famille_travaux=${famille_travaux1.libelle}
90     ${nature_travaux8ft1.id} = Ajouter la nature de travaux ${nature_travaux8ft1} ${dit_nature_travauxft1}
91     Set Suite Variable ${nature_travaux8ft1}
92    
93     &{nature_travaux9ft1} = Create Dictionary
94     ... libelle=Ravalement d'établissement privé 8
95     ... code=RAEP
96     ... famille_travaux=${famille_travaux1.libelle}
97     ${nature_travaux9ft1.id} = Ajouter la nature de travaux ${nature_travaux9ft1} ${dit_nature_travauxft1}
98     Set Suite Variable ${nature_travaux9ft1}
99    
100     &{nature_travaux10ft1} = Create Dictionary
101     ... libelle=Ravalement d'établissement privé 9
102     ... code=RAEP
103     ... famille_travaux=${famille_travaux1.libelle}
104     ${nature_travaux10ft1.id} = Ajouter la nature de travaux ${nature_travaux10ft1} ${dit_nature_travauxft1}
105     Set Suite Variable ${nature_travaux10ft1}
106    
107     &{nature_travaux11ft1} = Create Dictionary
108     ... libelle=Ravalement d'établissement privé 10
109     ... code=RAEP
110     ... famille_travaux=${famille_travaux1.libelle}
111     ${nature_travaux11ft1.id} = Ajouter la nature de travaux ${nature_travaux11ft1} ${dit_nature_travauxft1}
112     Set Suite Variable ${nature_travaux11ft1}
113    
114     @{dit_nature_travauxft2} = Create List
115     ... DP - Initiale
116 gmalvolti 14507 ... DP - Achèvement et conformité
117 gmalvolti 14477 &{nature_travaux1ft2} = Create Dictionary
118     ... libelle=Transformation de façade privé
119 gmalvolti 14507 ... code=TraPr
120 gmalvolti 14477 ... famille_travaux=${famille_travaux2.libelle}
121     ${nature_travaux1ft2.id} = Ajouter la nature de travaux ${nature_travaux1ft2} ${dit_nature_travauxft2}
122     Set Suite Variable ${nature_travaux1ft2}
123    
124     &{nature_travaux2ft2} = Create Dictionary
125     ... libelle=Transformation de façade public
126 gmalvolti 14507 ... code=TraPu
127 gmalvolti 14477 ... famille_travaux=${famille_travaux2.libelle}
128     ${nature_travaux2ft2.id} = Ajouter la nature de travaux ${nature_travaux2ft2} ${dit_nature_travauxft2}
129     Set Suite Variable ${nature_travaux2ft2}
130    
131 gmalvolti 14507 ${demain} = Add Time To Date ${date_ddmmyyyy} 1 days %d/%m/%Y True %d/%m/%Y
132     ${hier} = Add Time To Date ${date_ddmmyyyy} -1 days %d/%m/%Y True %d/%m/%Y
133     ${avant_hier} = Add Time To Date ${date_ddmmyyyy} -2 days %d/%m/%Y True %d/%m/%Y
134 gmalvolti 14512 Set Suite Variable ${hier}
135     Set Suite Variable ${avant_hier}
136 gmalvolti 14507
137     &{nature_travaux3ft2} = Create Dictionary
138     ... libelle=Transformation de jardin
139     ... code=TraJar
140     ... famille_travaux=${famille_travaux2.libelle}
141     ... om_validite_debut=${date_ddmmyyyy}
142     ... om_validite_fin=01/01/2043
143     ${nature_travaux3ft2.id} = Ajouter la nature de travaux ${nature_travaux3ft2} ${dit_nature_travauxft2}
144     Set Suite Variable ${nature_travaux3ft2}
145    
146     &{nature_travaux4ft2} = Create Dictionary
147     ... libelle=Transformation de monument
148     ... code=TraJar
149     ... famille_travaux=${famille_travaux2.libelle}
150     ... om_validite_debut=${demain}
151     ... om_validite_fin=01/01/2043
152     ${nature_travaux4ft2.id} = Ajouter la nature de travaux ${nature_travaux4ft2} ${dit_nature_travauxft2}
153     Set Suite Variable ${nature_travaux4ft2}
154    
155     &{nature_travaux5ft2} = Create Dictionary
156     ... libelle=Transformation de route
157     ... code=TraJar
158     ... famille_travaux=${famille_travaux2.libelle}
159     ... om_validite_debut=${avant_hier}
160     ... om_validite_fin=${hier}
161     ${nature_travaux5ft2.id} = Ajouter la nature de travaux ${nature_travaux5ft2} ${dit_nature_travauxft2}
162     Set Suite Variable ${nature_travaux5ft2}
163    
164 gmalvolti 14477 @{dit_nature_travauxft3} = Create List
165     ... CU - Initial
166    
167     &{nature_travaux1ft3} = Create Dictionary
168     ... libelle=Restauration de façade privé
169     ... code=ReFPr
170     ... famille_travaux=${famille_travaux3.libelle}
171     ${nature_travaux1ft3.id} = Ajouter la nature de travaux ${nature_travaux1ft3} ${dit_nature_travauxft3}
172     Set Suite Variable ${nature_travaux1ft3}
173    
174     &{nature_travaux2ft3} = Create Dictionary
175     ... libelle=Restauration de façade public
176     ... code=ReFPu
177     ... famille_travaux=${famille_travaux3.libelle}
178     ${nature_travaux2ft3.id} = Ajouter la nature de travaux ${nature_travaux2ft3} ${dit_nature_travauxft3}
179     Set Suite Variable ${nature_travaux2ft3}
180    
181     Vérification du bon fonctionnement de l'ajout des natures de travaux dans les dossiers d'instruction
182     [Documentation] Permet de vérifier que les natures de travaux sont bien filtrées par type de dossier d'instruction
183     ... et par date de validité
184    
185     Depuis la page d'accueil admin admin
186     # Création d'un dossier est vérification qu'il n'y a pas de natures de travaux associés
187     &{args_petitionnaire} = Create Dictionary
188     ... particulier_nom=TEST053NOM1
189     ... particulier_prenom=TEST053PRENOM1
190     ... om_collectivite=MARSEILLE
191     &{args_demande} = Create Dictionary
192     ... dossier_autorisation_type_detaille=Permis de construire pour une maison individuelle et / ou ses annexes
193     ... demande_type=Dépôt Initial
194     ... om_collectivite=MARSEILLE
195     ${di_sans_nt} = Ajouter la demande par WS ${args_demande} ${args_petitionnaire}
196     Set Suite Variable ${di_sans_nt}
197     Depuis le contexte du dossier d'instruction ${di_sans_nt}
198     Click On Portlet Action dossier_instruction modifier
199     Click Element css=#nature_travaux_chosen
200     # On vérifie qu'il n'y a pas de résultats dans le chosen
201     Element Should Contain css=#nature_travaux_chosen div.chosen-drop ul.chosen-results ${EMPTY}
202    
203     # Création d'un dossier ayant les travaux de la famille_travaux 1 et 2
204     &{args_petitionnaire} = Create Dictionary
205     ... particulier_nom=TEST053NOM2
206     ... particulier_prenom=TEST053PRENOM2
207     ... om_collectivite=MARSEILLE
208     &{args_demande} = Create Dictionary
209     ... dossier_autorisation_type_detaille=DECLARATION PREALABLE SIMPLE
210     ... demande_type=Dépôt Initial
211     ... om_collectivite=MARSEILLE
212     ${di_avec_nt_ft1} = Ajouter la demande par WS ${args_demande} ${args_petitionnaire}
213    
214     @{nature_travaux_di_ft1} = Create List
215     ... ${nature_travaux1ft1.famille_travaux} / ${nature_travaux1ft1.libelle}
216 gmalvolti 14481 ... ${nature_travaux2ft1.famille_travaux} / ${nature_travaux2ft1.libelle}
217 gmalvolti 14477 ... ${nature_travaux3ft1.famille_travaux} / ${nature_travaux3ft1.libelle}
218     ... ${nature_travaux4ft1.famille_travaux} / ${nature_travaux4ft1.libelle}
219     ... ${nature_travaux5ft1.famille_travaux} / ${nature_travaux5ft1.libelle}
220     ... ${nature_travaux6ft1.famille_travaux} / ${nature_travaux6ft1.libelle}
221     ... ${nature_travaux7ft1.famille_travaux} / ${nature_travaux7ft1.libelle}
222     ... ${nature_travaux8ft1.famille_travaux} / ${nature_travaux8ft1.libelle}
223     ... ${nature_travaux9ft1.famille_travaux} / ${nature_travaux9ft1.libelle}
224     ... ${nature_travaux10ft1.famille_travaux} / ${nature_travaux10ft1.libelle}
225     ... ${nature_travaux11ft1.famille_travaux} / ${nature_travaux11ft1.libelle}
226 gmalvolti 14481 ... ${nature_travaux1ft2.famille_travaux} / ${nature_travaux1ft2.libelle}
227     ... ${nature_travaux2ft2.famille_travaux} / ${nature_travaux2ft2.libelle}
228 gmalvolti 14477 ${value_di} = Create Dictionary
229     ... date_demande=${date_ddmmyyyy}
230     Set Suite Variable ${value_di}
231    
232     Depuis le contexte du dossier d'instruction ${di_avec_nt_ft1}
233     Click On Portlet Action dossier_instruction modifier
234     Select Multiple From Chosen List Should Contain List nature_travaux ${nature_travaux_di_ft1}
235 gmalvolti 14507 @{not_nature_travaux_di_ft1} = Create List
236     ... ${nature_travaux4ft2.famille_travaux} / ${nature_travaux4ft2.libelle}
237     ... ${nature_travaux5ft2.famille_travaux} / ${nature_travaux5ft2.libelle}
238     Select Multiple From Chosen List Should Not Contain List nature_travaux ${not_nature_travaux_di_ft1}
239 gmalvolti 14477 Modifier le dossier d'instruction ${di_avec_nt_ft1} ${value_di} nature_travaux=${nature_travaux_di_ft1}
240     Set Suite Variable ${di_avec_nt_ft1}
241    
242     # Création d'un dossier ayant les travaux de la famille_travaux 3
243     &{args_petitionnaire} = Create Dictionary
244     ... particulier_nom=TEST053NOM3
245     ... particulier_prenom=TEST053PRENOM3
246     ... om_collectivite=MARSEILLE
247     &{args_demande} = Create Dictionary
248     ... dossier_autorisation_type_detaille=Certificat d'urbanisme
249     ... demande_type=Dépôt Initial
250     ... om_collectivite=MARSEILLE
251     ${di_avec_nt_ft3} = Ajouter la demande par WS ${args_demande} ${args_petitionnaire}
252     Set Suite Variable ${di_avec_nt_ft3}
253    
254     @{nature_travaux_di_ft3} = Create List
255     ... ${nature_travaux1ft3.famille_travaux} / ${nature_travaux1ft3.libelle}
256     ... ${nature_travaux2ft3.famille_travaux} / ${nature_travaux2ft3.libelle}
257     Depuis le contexte du dossier d'instruction ${di_avec_nt_ft3}
258     Click On Portlet Action dossier_instruction modifier
259     Select Multiple From Chosen List Should Contain List nature_travaux ${nature_travaux_di_ft3}
260     Modifier le dossier d'instruction ${di_avec_nt_ft3} ${value_di} nature_travaux=${nature_travaux_di_ft3}
261    
262     Vérification du filtrage sur nature travaux et famille_travaux dans le listing des dossiers d'instruction
263     [Documentation] Permet de vérifier que le filtrage sur la nature de travaux et la famille de travaux
264     ... fonctionne correctement
265    
266     Depuis la page d'accueil admin admin
267    
268     # Filtrage famille de travaux
269     Depuis le listing dossier_instruction
270     ${param_advs} = Create Dictionary
271     ... famille_travaux=${nature_travaux1ft3.famille_travaux}
272     Saisir les parametres de recherche avancé du dossier d'instruction ${param_advs}
273     Click On Search Button
274    
275 gmalvolti 14481 Wait Until Element Contains css=div.pagination-nb 1 -
276    
277 gmalvolti 14477 Element Should Contain css=.tab-data
278     ... ${di_avec_nt_ft3}
279    
280     Element Should Not Contain css=.tab-data
281     ... ${di_avec_nt_ft1}
282    
283     Element Should Not Contain css=.tab-data
284     ... ${di_sans_nt}
285    
286     Depuis le listing dossier_instruction
287     ${param_advs} = Create Dictionary
288     ... famille_travaux=${nature_travaux1ft2.famille_travaux}
289     Saisir les parametres de recherche avancé du dossier d'instruction ${param_advs}
290     Click On Search Button
291    
292 gmalvolti 14481 Wait Until Element Contains css=div.pagination-nb 1 -
293    
294 gmalvolti 14477 # di_avec_nt_ft1 contient les nature de travaux de la famille 1 et 2
295     Element Should Contain css=.tab-data
296     ... ${di_avec_nt_ft1}
297    
298     Element Should Not Contain css=.tab-data
299     ... ${di_avec_nt_ft3}
300    
301     Element Should Not Contain css=.tab-data
302     ... ${di_sans_nt}
303    
304     # Filtrage famille travaux avec un autre champ
305     Depuis le listing dossier_instruction
306     ${param_advs} = Create Dictionary
307     ... famille_travaux=${nature_travaux1ft2.famille_travaux}
308     ... date_depot_min=${date_ddmmyyyy}
309     Saisir les parametres de recherche avancé du dossier d'instruction ${param_advs}
310     Click On Search Button
311    
312 gmalvolti 14481 Wait Until Element Contains css=div.pagination-nb 1 -
313    
314 gmalvolti 14477 # di_avec_nt_ft1 contient les nature de travaux de la famille 1 et 2
315     Element Should Contain css=.tab-data
316     ... ${di_avec_nt_ft1}
317    
318     Element Should Not Contain css=.tab-data
319     ... ${di_avec_nt_ft3}
320    
321     Element Should Not Contain css=.tab-data
322     ... ${di_sans_nt}
323    
324     # Filtrage nature de travaux
325     Depuis le listing dossier_instruction
326     ${param_advs} = Create Dictionary
327     ... nature_travaux=${nature_travaux1ft1.libelle}
328     Saisir les parametres de recherche avancé du dossier d'instruction ${param_advs}
329     Click On Search Button
330    
331 gmalvolti 14481 Wait Until Element Contains css=div.pagination-nb 1 -
332    
333     # On vérifie que le span contient bien la structure voulu
334     # (liste des famille / nature de travaux et description du projet tout en bas)
335     # Multiline string with newlines
336    
337     @{nature_travaux_di_ft1} = Create List
338     ... ${nature_travaux1ft1.famille_travaux} / ${nature_travaux1ft1.libelle}
339     ... ${nature_travaux2ft1.famille_travaux} / ${nature_travaux2ft1.libelle}
340     ... ${nature_travaux3ft1.famille_travaux} / ${nature_travaux3ft1.libelle}
341     ... ${nature_travaux4ft1.famille_travaux} / ${nature_travaux4ft1.libelle}
342     ... ${nature_travaux5ft1.famille_travaux} / ${nature_travaux5ft1.libelle}
343     ... ${nature_travaux6ft1.famille_travaux} / ${nature_travaux6ft1.libelle}
344     ... ${nature_travaux7ft1.famille_travaux} / ${nature_travaux7ft1.libelle}
345     ... ${nature_travaux8ft1.famille_travaux} / ${nature_travaux8ft1.libelle}
346     ... ${nature_travaux9ft1.famille_travaux} / ${nature_travaux9ft1.libelle}
347     ... ${nature_travaux10ft1.famille_travaux} / ${nature_travaux10ft1.libelle}
348     ... ${nature_travaux11ft1.famille_travaux} / ${nature_travaux11ft1.libelle}
349     ... ${nature_travaux1ft2.famille_travaux} / ${nature_travaux1ft2.libelle}
350     ... ${nature_travaux2ft2.famille_travaux} / ${nature_travaux2ft2.libelle}
351     Sort List ${nature_travaux_di_ft1}
352     ${expected_tooltip_value}= catenate SEPARATOR=\n @{nature_travaux_di_ft1}
353     ${title} = Get Element Attribute css=.tab-data a.lienTable span title
354     # Saut de ligne en plus dans le title qui doit être enlevé pour que la comparaison soit correct
355     ${title} = Strip String ${title}
356     Should Be Equal ${title} ${expected_tooltip_value}
357    
358 gmalvolti 14477 # di_avec_nt_ft1 contient les nature de travaux de la famille 1 et 2
359     Element Should Contain css=.tab-data
360     ... ${di_avec_nt_ft1}
361    
362     Element Should Not Contain css=.tab-data
363     ... ${di_avec_nt_ft3}
364    
365     Element Should Not Contain css=.tab-data
366     ... ${di_sans_nt}
367    
368     # On ajoute une nature de travaux présent dans l'autre dossier
369     @{nature_travaux_di_ft3} = Create List
370     ... ${nature_travaux11ft1.famille_travaux} / ${nature_travaux11ft1.libelle}
371     Modifier le dossier d'instruction ${di_avec_nt_ft3} ${value_di} nature_travaux=${nature_travaux_di_ft3}
372    
373     # Filtrage nature de travaux
374     Depuis le listing dossier_instruction
375     ${param_advs} = Create Dictionary
376     ... nature_travaux=${nature_travaux11ft1.libelle}
377     Saisir les parametres de recherche avancé du dossier d'instruction ${param_advs}
378     Click On Search Button
379 gmalvolti 14481
380     Wait Until Element Contains css=div.pagination-nb 1 - 2
381    
382 gmalvolti 14477 # On doit trouver les deux dossier qui possède la nature de travaux
383     Element Should Contain css=.tab-tab
384     ... ${di_avec_nt_ft1}
385    
386     Element Should Contain css=.tab-tab
387     ... ${di_avec_nt_ft3}
388    
389     Element Should Not Contain css=.tab-tab
390     ... ${di_sans_nt}
391 gmalvolti 14481
392     # Export csv d'un listing filtré par nature de travaux
393     ${link_export_listing}= Get Element Attribute css=.tab-export a href
394     ${output_dir} ${output_name} = Télécharger un fichier ${SESSION_COOKIE} ${link_export_listing} ${EXECDIR}${/}binary_files${/}
395     La page ne doit pas contenir d'erreur
396    
397     # Récupération du contenu du fichier pour vérifier les champs affiché.
398     # Vérifie que les champs "Id Plat'AU du service consultant" et
399     # "libellé du service consultant" ne sont pas présent
400     ${full_path_to_file} = Catenate SEPARATOR= ${output_dir} ${output_name}
401     ${content_file} = Get File ${full_path_to_file}
402 gmalvolti 14530 ${header_csv_file} = Set Variable dossier;pétitionnaire;correspondant;"architecte (nom)";"architecte (cabinet)";localisation;nature;"nombre de logements créés";"surface créée";"famille de travaux";"nature de travaux";"description du projet";"date de dépôt";"date de complétude";"date limite";instructeur;division;état;enjeu;collectivité;"dossier plat'au";"consultation plat'au";"pièce(s) plat'au";"autres objets plat'au"
403 gmalvolti 14481 Should Contain ${content_file} ${header_csv_file}
404     # Vérification du contenu du csv pour les 2 lignes filtrées
405     # Famille travaux ligne 1
406 gmalvolti 14507 Should Contain ${content_file} Ravalement,Restauration
407 gmalvolti 14481 # Famille travaux ligne 2
408 gmalvolti 14507 Should Contain ${content_file} Ravalement,Transformation
409 gmalvolti 14481 # Famille travaux ligne 1
410 gmalvolti 14507 Should Contain ${content_file} Ravalement d'établissement privé 10,Restauration de façade privé,Restauration de façade public
411 gmalvolti 14481 # Famille travaux ligne 2
412 gmalvolti 14507 Should Contain ${content_file} Ravalement d'établissement privé,Ravalement d'établissement privé 10,Ravalement d'établissement privé 2,Ravalement d'établissement privé 3,Ravalement d'établissement privé 4,Ravalement d'établissement privé 5,Ravalement d'établissement privé 6,Ravalement d'établissement privé 7,Ravalement d'établissement privé 8,Ravalement d'établissement privé 9,Ravalement d'établissement public,Transformation de façade privé,Transformation de façade public
413 gmalvolti 14481
414 gmalvolti 14507 Vérification de la conservation des natures de travaux lors de l'ajout de dossier sur existant
415     [Documentation] Si la nature de travaux est compatible avec le type de dossier d'instruction sur existant
416     ... exemple : DAACT. Alors la nature de travaux doit apparaître sur le nouveau dossier.
417    
418     Depuis la page d'accueil admin admin
419    
420     # On clôture le dossier initial
421     Ajouter une instruction au DI et la finaliser ${di_avec_nt_ft1} accepter un dossier sans réserve
422     # On ajout un dossier sur existant DAACT
423     # Seul les natures de travaux de la famille 2 sont compatibles (cf Constitution du jeu de données)
424     Go To Submenu In Menu guichet_unique autre-dossier
425     Rechercher et créer une demande sur dossier existant ${di_avec_nt_ft1}
426     Select From List By Label om_collectivite MARSEILLE
427     Select From List By Label demande_type Déclaration attestant l'achèvement et la conformité des travaux
428     Click On Submit Button
429     # On accède au dossier
430     Click Element css=#link_demande_dossier_instruction
431     ${id_di_daact} = Get Text css=#dossier_libelle
432    
433     Element Should Contain css=div.field-type-select_multiple_static div.form-content Transformation / Transformation de façade public
434     Element Should Contain css=div.field-type-select_multiple_static div.form-content Transformation / Transformation de façade privé
435    
436     @{nature_travaux_di_ft2} = Create List
437     ... ${nature_travaux1ft2.famille_travaux} / ${nature_travaux1ft2.libelle}
438     ... ${nature_travaux2ft2.famille_travaux} / ${nature_travaux2ft2.libelle}
439    
440     Click On Portlet Action dossier_instruction modifier
441     Unselect From Multiple Chosen List nature_travaux ${nature_travaux_di_ft2}
442     Select Multiple From Chosen List Should Contain List nature_travaux ${nature_travaux_di_ft2}
443    
444     @{not_nature_travaux_di} = Create List
445     ... ${nature_travaux1ft1.famille_travaux} / ${nature_travaux1ft1.libelle}
446     ... ${nature_travaux2ft1.famille_travaux} / ${nature_travaux2ft1.libelle}
447     ... ${nature_travaux3ft1.famille_travaux} / ${nature_travaux3ft1.libelle}
448     ... ${nature_travaux4ft1.famille_travaux} / ${nature_travaux4ft1.libelle}
449     ... ${nature_travaux5ft1.famille_travaux} / ${nature_travaux5ft1.libelle}
450     ... ${nature_travaux6ft1.famille_travaux} / ${nature_travaux6ft1.libelle}
451     ... ${nature_travaux7ft1.famille_travaux} / ${nature_travaux7ft1.libelle}
452     ... ${nature_travaux8ft1.famille_travaux} / ${nature_travaux8ft1.libelle}
453     ... ${nature_travaux9ft1.famille_travaux} / ${nature_travaux9ft1.libelle}
454     ... ${nature_travaux10ft1.famille_travaux} / ${nature_travaux10ft1.libelle}
455     ... ${nature_travaux11ft1.famille_travaux} / ${nature_travaux11ft1.libelle}
456     ... ${nature_travaux1ft3.famille_travaux} / ${nature_travaux1ft3.libelle}
457     ... ${nature_travaux2ft3.famille_travaux} / ${nature_travaux2ft3.libelle}
458     Select Multiple From Chosen List Should Not Contain List nature_travaux ${not_nature_travaux_di}
459     Select From Multiple Chosen List nature_travaux ${nature_travaux_di_ft2}
460     # On clôture la DAACT
461     Ajouter une instruction au DI et la finaliser ${id_di_daact} accepter un dossier sans réserve
462    
463     # Sur un autre type de dossier il ne doit pas y avoir de natures de travaux ajoutées
464     Go To Submenu In Menu guichet_unique autre-dossier
465     Rechercher et créer une demande sur dossier existant ${id_di_daact}
466     Select From List By Label om_collectivite MARSEILLE
467     Select From List By Label demande_type Demande d'ouverture de chantier
468     Click On Submit Button
469     Click Element css=#link_demande_dossier_instruction
470     ${id_di_doc} = Get Text css=#dossier_libelle
471    
472     Element Should Not Contain css=div.field-type-select_multiple_static div.form-content Transformation / Transformation de façade public
473     Element Should Not Contain css=div.field-type-select_multiple_static div.form-content Transformation / Transformation de façade privé
474    
475     # On clôture la DOC
476     Ajouter une instruction au DI et la finaliser ${id_di_doc} ARRÊTÉ DE REFUS
477     Depuis l'instruction du dossier d'instruction ${id_di_doc} ARRÊTÉ DE REFUS
478     # On saisi la date de retour AR depuis le formulaire de l'instruction
479     Click On SubForm Portlet Action instruction modifier_suivi
480     Input Datepicker date_retour_rar ${date_ddmmyyyy}
481     Click On Submit Button In Subform
482     Click On Back Button In Subform
483    
484     # On refait un ajout sur existant DAACT pour vérifier qu'on prend bien les données du dernier dossier clôturé
485     Go To Submenu In Menu guichet_unique autre-dossier
486     Rechercher et créer une demande sur dossier existant ${id_di_daact}
487     Select From List By Label om_collectivite MARSEILLE
488     Select From List By Label demande_type Déclaration attestant l'achèvement et la conformité des travaux
489     Click On Submit Button
490     # On accède au dossier
491     Click Element css=#link_demande_dossier_instruction
492 gmalvolti 14512 ${id_di_daact_2} = Get Text css=#dossier_libelle
493 gmalvolti 14507
494     # Les natures de travaux de la première DAACT ne doivent pas apparaître au départ
495     Element Should Not Contain css=div.field-type-select_multiple_static div.form-content Transformation / Transformation de façade public
496     Element Should Not Contain css=div.field-type-select_multiple_static div.form-content Transformation / Transformation de façade privé
497    
498     # On vérifie qu'elles sont bien disponibles
499     Click On Portlet Action dossier_instruction modifier
500 gmalvolti 14512 Select Multiple From Chosen List Should Contain List nature_travaux ${nature_travaux_di_ft2}
501    
502     &{famille_travaux2_modif} = Create Dictionary
503     ... om_validite_debut=${avant_hier}
504     ... om_validite_fin=${hier}
505     Modifier la famille de travaux ${famille_travaux2.id} ${famille_travaux2_modif}
506    
507     Depuis le contexte du dossier d'instruction ${id_di_daact_2}
508     Click On Portlet Action dossier_instruction modifier
509     Select Multiple From Chosen List Should Not Contain List nature_travaux ${nature_travaux_di_ft2}

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26