41 |
// |
// |
42 |
$this->clickAndWait("link=mes encours"); |
$this->clickAndWait("link=mes encours"); |
43 |
$this->verifyTextPresent("DI"); |
$this->verifyTextPresent("DI"); |
44 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
45 |
// |
// |
46 |
$this->clickAndWait("link=tous les encours"); |
$this->clickAndWait("link=tous les encours"); |
47 |
$this->verifyTextPresent("DI"); |
$this->verifyTextPresent("DI"); |
48 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
49 |
// |
// |
50 |
$this->clickAndWait("link=mes clôturés"); |
$this->clickAndWait("link=mes clôturés"); |
51 |
$this->verifyTextPresent("DI"); |
$this->verifyTextPresent("DI"); |
52 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
53 |
// |
// |
54 |
$this->clickAndWait("link=tous les clôturés"); |
$this->clickAndWait("link=tous les clôturés"); |
55 |
$this->verifyTextPresent("DI"); |
$this->verifyTextPresent("DI"); |
56 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
57 |
// |
// |
58 |
$this->clickAndWait("link=recherche"); |
$this->clickAndWait("link=recherche"); |
59 |
$this->verifyTextPresent("DI"); |
$this->verifyTextPresent("DI"); |
60 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
61 |
// |
// |
62 |
$this->clickAndWait("link=dossiers a qualifier"); |
$this->clickAndWait("link=dossiers à qualifier"); |
63 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
64 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
65 |
// |
// |
66 |
$this->clickAndWait("link=Mes retours"); |
$this->clickAndWait("link=Mes retours"); |
67 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
68 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
69 |
// |
// |
70 |
$this->clickAndWait("link=Tous les retours"); |
$this->clickAndWait("link=Tous les retours"); |
71 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
72 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
73 |
// |
// |
74 |
$this->clickAndWait("link=Mes messages"); |
$this->clickAndWait("link=Mes messages"); |
75 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
76 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
77 |
// |
// |
78 |
$this->clickAndWait("link=Tous les messages"); |
$this->clickAndWait("link=Tous les messages"); |
79 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
80 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
81 |
// |
// |
82 |
$this->clickAndWait("css=a.commission_mes_retours-16"); |
$this->clickAndWait("css=a.commission_mes_retours-16"); |
83 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
84 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
85 |
// |
// |
86 |
$this->clickAndWait("css=a.commission_tous_retours-16"); |
$this->clickAndWait("css=a.commission_tous_retours-16"); |
87 |
$this->verifyTextPresent("dossier"); |
$this->verifyTextPresent("dossier"); |
88 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
89 |
|
|
90 |
// |
// |
91 |
$this->logout(); |
$this->logout(); |
101 |
$this->clickAndWait("link=mes encours"); |
$this->clickAndWait("link=mes encours"); |
102 |
// Accès au dossier en visualisation |
// Accès au dossier en visualisation |
103 |
$this->clickAndWait("link=AZ0130551200001P0"); |
$this->clickAndWait("link=AZ0130551200001P0"); |
104 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
105 |
// Accès à l'onglet des consultations |
// Accès à l'onglet des consultations |
106 |
$this->click("id=consultation"); |
$this->click("id=consultation"); |
107 |
$this->setSpeed('120'); |
$this->setSpeed('120'); |
108 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
109 |
//// Ajout d'une simple consultation |
|
110 |
|
//// Ajout de deux consultation |
111 |
// On clique sur le bouton ajout |
// On clique sur le bouton ajout |
112 |
$this->click("//div[@id='sousform-consultation']/table/thead/tr/th/a/span"); |
$this->click("//div[@id='sousform-consultation']/table/thead/tr/th/a/span"); |
113 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
114 |
// On sélectionne le service |
// On sélectionne le service |
115 |
$this->select("id=service", "label=1ER Maire 1er Secteur"); |
$this->select("id=service", "label=1ER Maire 1er Secteur"); |
116 |
// On valide le formulaire |
// On valide le formulaire |
117 |
$this->click("//input[@value='Ajouter']"); |
$this->click("//input[@value='Ajouter']"); |
118 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
119 |
|
// |
120 |
|
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
121 |
|
// On clique sur le bouton retour |
122 |
|
$this->click("css=form[name=\"f2\"] > div.formControls > a.retour"); |
123 |
|
//// Ajout d'une simple consultation |
124 |
|
// On clique sur le bouton ajout |
125 |
|
$this->click("//div[@id='sousform-consultation']/table/thead/tr/th/a/span"); |
126 |
|
$this->verifyNoErrors(); |
127 |
|
// On sélectionne le service |
128 |
|
$this->select("id=service", "label=59.01 Direction de l'Eau et de l'Assainissement"); |
129 |
|
// On valide le formulaire |
130 |
|
$this->click("//input[@value='Ajouter']"); |
131 |
|
$this->verifyNoErrors(); |
132 |
// |
// |
133 |
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
$this->verifyTextPresent("Vos modifications ont bien été enregistrées."); |
134 |
// On clique sur le bouton retour |
// On clique sur le bouton retour |
137 |
//// Ajout de plusieurs consultations |
//// Ajout de plusieurs consultations |
138 |
// On clique sur le bouton ajout multiple |
// On clique sur le bouton ajout multiple |
139 |
$this->click("//div[@id='sousform-consultation']/table/thead/tr/th/a[2]/span"); |
$this->click("//div[@id='sousform-consultation']/table/thead/tr/th/a[2]/span"); |
140 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
141 |
// On sélectionne trois servcies |
// On sélectionne trois servcies |
142 |
$this->click("id=t10_572_0_"); |
$this->click("id=t10_572_0_"); |
143 |
$this->click("id=t10_575_0_"); |
$this->click("id=t10_575_0_"); |
146 |
$this->click("id=add-ser-them"); |
$this->click("id=add-ser-them"); |
147 |
// On valide le formulaire |
// On valide le formulaire |
148 |
$this->click("id=button_val"); |
$this->click("id=button_val"); |
149 |
$this->verifyNoDatabaseError(); |
$this->verifyNoErrors(); |
150 |
// |
// |
151 |
$this->verifyTextPresent("3 service(s) sélectionné(s) dont 0 consultation(s) papier."); |
$this->verifyTextPresent("3 service(s) sélectionné(s) dont 0 consultation(s) papier."); |
152 |
|
|
153 |
// On vérifie que nous avons bien 4 consultations affichées |
// On vérifie que nous avons bien 5 consultations affichées |
154 |
$this->verifyTextPresent("1 - 4 enregistrement(s) sur 4"); |
$this->verifyTextPresent("1 - 5 enregistrement(s) sur 5"); |
155 |
|
|
156 |
// |
// |
157 |
$this->logout(); |
$this->logout(); |