42 |
$this->clickAndWait("link=Demandes en cours"); |
$this->clickAndWait("link=Demandes en cours"); |
43 |
// Accès au dossier en visualisation |
// Accès au dossier en visualisation |
44 |
$this->clickAndWait("link=AZ0130551200001P0"); |
$this->clickAndWait("link=AZ0130551200001P0"); |
45 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
46 |
$this->verifyTextPresent("Demandes d'avis > en cours"); |
$this->verifyTextPresent("Demandes d'avis > en cours"); |
47 |
// Accès à l'onglet des consultations |
// Accès à l'onglet des consultations |
48 |
$this->click("//div[@id='portlet-actions']/ul/li/a/span"); |
$this->click("//div[@id='portlet-actions']/ul/li/a/span"); |
49 |
$this->verifyTextPresent("consultations 2"); |
$this->verifyTextPresent("consultations 2"); |
50 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
51 |
// Validation sans retour d'avis |
// Validation sans retour d'avis |
52 |
$this->click("//input[@value='Modifier']"); |
$this->click("//input[@value='Modifier']"); |
53 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
54 |
// Retour à la liste des demandes |
// Retour à la liste des demandes |
55 |
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
56 |
|
|
57 |
// Accès au dossier en visualisation |
// Accès au dossier en visualisation |
58 |
$this->clickAndWait("link=AZ0130551200001P0"); |
$this->clickAndWait("link=AZ0130551200001P0"); |
59 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
60 |
$this->verifyTextPresent("Demandes d'avis > en cours"); |
$this->verifyTextPresent("Demandes d'avis > en cours"); |
61 |
// Accès à l'onglet des consultations |
// Accès à l'onglet des consultations |
62 |
$this->click("//div[@id='portlet-actions']/ul/li/a/span"); |
$this->click("//div[@id='portlet-actions']/ul/li/a/span"); |
63 |
$this->verifyTextPresent("consultations 2"); |
$this->verifyTextPresent("consultations 2"); |
64 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
65 |
// Saisie de valeurs |
// Saisie de valeurs |
66 |
$this->select("id=avis_consultation", "label=Defavorable"); |
$this->select("id=avis_consultation", "label=Defavorable"); |
67 |
$this->type("id=motivation", "Pas motivé"); |
$this->type("id=motivation", "Pas motivé"); |
69 |
$this->click("css=span.ui-icon.ui-icon-arrowthickstop-1-s"); |
$this->click("css=span.ui-icon.ui-icon-arrowthickstop-1-s"); |
70 |
// Validation sans saisie de fichier |
// Validation sans saisie de fichier |
71 |
$this->click("name=submit"); |
$this->click("name=submit"); |
72 |
|
$this->verifyNoErrors(); |
73 |
$this->verifyTextPresent("Vous devez sélectionner un fichier."); |
$this->verifyTextPresent("Vous devez sélectionner un fichier."); |
74 |
// Saisie de fichier |
// Saisie de fichier |
75 |
$this->type("name=userfile[]", dirname(__FILE__)."/binaire/lettre_rar16042013124515.pdf"); |
$this->type("name=userfile[]", dirname(__FILE__)."/binaire/lettre_rar16042013124515.pdf"); |
76 |
$this->click("name=submit"); |
$this->click("name=submit"); |
77 |
|
$this->verifyNoErrors(); |
78 |
// Validation de la modification de la demande d'avis |
// Validation de la modification de la demande d'avis |
79 |
$this->click("//input[@value='Modifier']"); |
$this->click("//input[@value='Modifier']"); |
80 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
81 |
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
82 |
|
|
83 |
// Retour à la liste des demandes |
// Retour à la liste des demandes |
84 |
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
85 |
|
$this->verifyNoErrors(); |
86 |
// Vérification que la demande d'avis n'est plus presente |
// Vérification que la demande d'avis n'est plus presente |
87 |
$this->assertTextNotPresent("link=AZ0130551200001P0"); |
$this->assertTextNotPresent("link=AZ0130551200001P0"); |
88 |
|
|
97 |
// |
// |
98 |
$this->login(); |
$this->login(); |
99 |
|
|
100 |
|
// |
101 |
$this->clickAndWait("link=Demandes passées"); |
$this->clickAndWait("link=Demandes passées"); |
102 |
|
$this->verifyNoErrors(); |
103 |
|
|
104 |
|
// |
105 |
$this->clickAndWait("link=AZ0130551200001P0"); |
$this->clickAndWait("link=AZ0130551200001P0"); |
106 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
107 |
$this->verifyTextPresent("Demandes d'avis > passées"); |
$this->verifyTextPresent("Demandes d'avis > passées"); |
108 |
// $this->click("//div[@id='portlet-actions']/ul/li/a/span"); |
// $this->click("//div[@id='portlet-actions']/ul/li/a/span"); |
109 |
// $this->waitForPopUp("", "30000"); |
// $this->waitForPopUp("", "30000"); |
110 |
// $this->selectPopUp(); |
// $this->selectPopUp(); |
111 |
// sleep(5); |
// sleep(5); |
112 |
// $this->verifyNoDatabaseError(); |
// $this->verifyNoErrors(); |
113 |
// $this->verifyTextPresent("Avis solicité pour conformité"); |
// $this->verifyTextPresent("Avis solicité pour conformité"); |
114 |
// $this->verifyTextPresent("Direction de l'Eau et de l'Assainissement"); |
// $this->verifyTextPresent("Direction de l'Eau et de l'Assainissement"); |
115 |
// $this->close(); |
// $this->close(); |