40 |
|
|
41 |
// |
// |
42 |
$this->clickAndWait("link=attestation"); |
$this->clickAndWait("link=attestation"); |
43 |
|
$this->verifyNoErrors(); |
44 |
$this->verifyTextPresent("imprimer l'attestation d'affichage réglementaire"); |
$this->verifyTextPresent("imprimer l'attestation d'affichage réglementaire"); |
45 |
// |
// |
46 |
$this->type("id=dossier", "PC0130551200002P0"); |
$this->type("id=dossier", "PC0130551200002P0"); |
47 |
$this->clickAndWait("//input[@value='Valider']"); |
$this->clickAndWait("//input[@value='Valider']"); |
48 |
|
$this->verifyNoErrors(); |
49 |
$this->verifyTextPresent("Ce dossier n'a jamais été affiché."); |
$this->verifyTextPresent("Ce dossier n'a jamais été affiché."); |
50 |
|
|
51 |
// |
// |
52 |
$this->clickAndWait("link=registre"); |
$this->clickAndWait("link=registre"); |
53 |
|
$this->verifyNoErrors(); |
54 |
$this->verifyTextPresent("imprimer le registre d'affichage réglementaire"); |
$this->verifyTextPresent("imprimer le registre d'affichage réglementaire"); |
55 |
// |
// |
56 |
$this->click("//input[@value='Valider']"); |
$this->click("//input[@value='Valider']"); |
59 |
$this->waitForPopUp("", "30000"); |
$this->waitForPopUp("", "30000"); |
60 |
$this->selectPopUp(); |
$this->selectPopUp(); |
61 |
sleep(5); |
sleep(5); |
62 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
63 |
$this->verifyTextPresent("Registre des dossiers en cours"); |
$this->verifyTextPresent("Registre des dossiers en cours"); |
64 |
$this->close(); |
$this->close(); |
65 |
// |
// |
66 |
$this->selectWindow(); |
$this->selectWindow(); |
67 |
|
$this->verifyNoErrors(); |
68 |
$this->verifyTextPresent("Traitement terminé. Le registre a été téléchargé."); |
$this->verifyTextPresent("Traitement terminé. Le registre a été téléchargé."); |
69 |
|
|
70 |
// |
// |
71 |
$this->clickAndWait("link=attestation"); |
$this->clickAndWait("link=attestation"); |
72 |
|
$this->verifyNoErrors(); |
73 |
$this->verifyTextPresent("imprimer l'attestation d'affichage réglementaire"); |
$this->verifyTextPresent("imprimer l'attestation d'affichage réglementaire"); |
74 |
// |
// |
75 |
$this->clickAndWait("//input[@value='Valider']"); |
$this->clickAndWait("//input[@value='Valider']"); |
76 |
|
$this->verifyNoErrors(); |
77 |
$this->verifyTextPresent("Veuiller saisir un N° de dossier."); |
$this->verifyTextPresent("Veuiller saisir un N° de dossier."); |
78 |
// |
// |
79 |
$this->type("id=dossier", "123"); |
$this->type("id=dossier", "123"); |
80 |
$this->clickAndWait("//input[@value='Valider']"); |
$this->clickAndWait("//input[@value='Valider']"); |
81 |
|
$this->verifyNoErrors(); |
82 |
$this->verifyTextPresent("Ce dossier n'existe pas."); |
$this->verifyTextPresent("Ce dossier n'existe pas."); |
83 |
// |
// |
84 |
$this->type("id=dossier", "PC0130551200002P0"); |
$this->type("id=dossier", "PC0130551200002P0"); |
85 |
$this->clickAndWait("//input[@value='Valider']"); |
$this->clickAndWait("//input[@value='Valider']"); |
86 |
|
$this->verifyNoErrors(); |
87 |
$this->verifyTextPresent("Cliquez sur le lien ci-dessous pour télécharger votre attestation d'affichage : \n\nAttestation d'affichage"); |
$this->verifyTextPresent("Cliquez sur le lien ci-dessous pour télécharger votre attestation d'affichage : \n\nAttestation d'affichage"); |
88 |
// |
// |
89 |
$this->click("link=Attestation d'affichage"); |
$this->click("link=Attestation d'affichage"); |
90 |
$this->waitForPopUp("", "30000"); |
$this->waitForPopUp("", "30000"); |
91 |
$this->selectPopUp(); |
$this->selectPopUp(); |
92 |
sleep(5); |
sleep(5); |
93 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
94 |
$this->verifyTextPresent("ATTESTATION D'AFFICHAGE REGLEMENTAIRE"); |
$this->verifyTextPresent("ATTESTATION D'AFFICHAGE REGLEMENTAIRE"); |
95 |
$this->close(); |
$this->close(); |
96 |
// |
// |
105 |
*/ |
*/ |
106 |
public function testRecepisse() { |
public function testRecepisse() { |
107 |
// |
// |
108 |
|
$this->setSleep(1); |
109 |
|
// |
110 |
$this->login(); |
$this->login(); |
111 |
|
|
112 |
// |
// |
113 |
$this->clickAndWait("link=récépissé"); |
$this->clickAndWait("link=récépissé"); |
114 |
|
$this->verifyNoErrors(); |
115 |
$this->verifyTextPresent("demande"); |
$this->verifyTextPresent("demande"); |
116 |
// |
// |
117 |
$this->clickAndWait("link=DAT0130551200001P0"); |
$this->clickAndWait("link=DAT0130551200001P0"); |
118 |
|
$this->verifyNoErrors(); |
119 |
$this->verifyTextPresent("Demande d'autorisation de construire, d'aménager ou de modifier un ERP"); |
$this->verifyTextPresent("Demande d'autorisation de construire, d'aménager ou de modifier un ERP"); |
120 |
|
// Le nom du pétitionnaire doit apparaître |
121 |
|
$this->verifyTextPresent("BERNARD LILIANE"); |
122 |
// |
// |
123 |
$this->click("link=Éditer le récépissé PDF"); |
$this->click("link=Éditer le récépissé PDF"); |
124 |
$this->waitForPopUp("", "30000"); |
$this->waitForPopUp("", "30000"); |
125 |
$this->selectPopUp(); |
$this->selectPopUp(); |
126 |
sleep(5); |
sleep(5); |
127 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
128 |
$this->verifyTextPresent("RECEPISSE DE DEPOT"); |
$this->verifyTextPresent("RECEPISSE DE DEPOT"); |
129 |
$this->close(); |
$this->close(); |
130 |
// |
// |
131 |
$this->selectWindow(); |
$this->selectWindow(); |
132 |
// |
// |
133 |
$this->clickAndWait("link=Retour"); |
$this->clickAndWait("link=Retour"); |
134 |
|
$this->verifyNoErrors(); |
135 |
$this->verifyTextPresent("demande"); |
$this->verifyTextPresent("demande"); |
136 |
|
|
137 |
// |
// |
147 |
|
|
148 |
// |
// |
149 |
$this->clickAndWait("link=nouveau dossier"); |
$this->clickAndWait("link=nouveau dossier"); |
150 |
|
$this->verifyNoErrors(); |
151 |
$this->verifyTextPresent("demande"); |
$this->verifyTextPresent("demande"); |
152 |
// |
// |
153 |
$this->select("id=dossier_autorisation_type_detaille", "label=Permis de construire pour une maison individuelle et / ou ses annexes"); |
$this->select("id=dossier_autorisation_type_detaille", "label=Permis de construire pour une maison individuelle et / ou ses annexes"); |
168 |
|
|
169 |
$this->click("//input[@value=\"Ajouter l'enregistrement de la table : 'demandeur'\"]"); |
$this->click("//input[@value=\"Ajouter l'enregistrement de la table : 'demandeur'\"]"); |
170 |
sleep(1); |
sleep(1); |
171 |
|
$this->verifyNoErrors(); |
172 |
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
173 |
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
174 |
sleep(1); |
sleep(1); |
175 |
// |
// |
176 |
$this->verifyTextPresent("DURAND MICKAEL\n 12 RUE DE LA LOI APPT 12 \n 13012 MARSEILLE \n 0404040404"); |
$this->verifyTextPresent("DURAND MICKAEL\n 12 RUE DE LA LOI APPT 12 \n 13012 MARSEILLE \n 0404040404"); |
177 |
$this->clickAndWait("//input[@value='Ajouter']"); |
$this->clickAndWait("//input[@value='Ajouter']"); |
178 |
|
$this->verifyNoErrors(); |
179 |
$this->verifyTextPresent("Création du dossier d'autorisation n°PC0130551300003"); |
$this->verifyTextPresent("Création du dossier d'autorisation n°PC0130551300003"); |
180 |
// |
// |
181 |
//$this->click("link= Télécharger le récépissé de la demande"); |
//$this->click("link= Télécharger le récépissé de la demande"); |
183 |
$this->waitForPopUp("", "30000"); |
$this->waitForPopUp("", "30000"); |
184 |
$this->selectPopUp(); |
$this->selectPopUp(); |
185 |
sleep(5); |
sleep(5); |
186 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
187 |
$this->verifyTextPresent("RECEPISSE DE DEPOT"); |
$this->verifyTextPresent("RECEPISSE DE DEPOT"); |
188 |
$this->close(); |
$this->close(); |
189 |
// |
// |
190 |
$this->selectWindow(); |
$this->selectWindow(); |
191 |
// |
// |
192 |
$this->clickAndWait("link=Retour"); |
$this->clickAndWait("link=Retour"); |
193 |
|
$this->verifyNoErrors(); |
194 |
// |
// |
195 |
$this->clickAndWait("link=pétitionnaire fréquent"); |
$this->clickAndWait("link=pétitionnaire fréquent"); |
196 |
|
$this->verifyNoErrors(); |
197 |
$this->verifyTextPresent("pétitionnaire fréquent"); |
$this->verifyTextPresent("pétitionnaire fréquent"); |
|
// |
|
198 |
$this->verifyTextPresent("DURAND MICKAEL"); |
$this->verifyTextPresent("DURAND MICKAEL"); |
199 |
// |
// |
200 |
$this->clickAndWait("link=DURAND MICKAEL"); |
$this->clickAndWait("link=DURAND MICKAEL"); |
201 |
|
$this->verifyNoErrors(); |
202 |
$this->verifyTextPresent("RUE DE LA LOI "); |
$this->verifyTextPresent("RUE DE LA LOI "); |
203 |
// |
// |
204 |
$this->clickAndWait("link=Retour"); |
$this->clickAndWait("link=Retour"); |
205 |
|
$this->verifyNoErrors(); |
206 |
$this->verifyTextPresent("pétitionnaire fréquent"); |
$this->verifyTextPresent("pétitionnaire fréquent"); |
207 |
// |
// |
208 |
$this->logout(); |
$this->logout(); |