Create suivi_de_projet.feature#248
Create suivi_de_projet.feature#248thomashoarau wants to merge 10 commits inton7consulting:masterfrom
Conversation
Stoakes
left a comment
There was a problem hiding this comment.
Some help based on travis logs
| Then the response status code should be 200 | ||
| And I should see "Alice" | ||
|
|
||
| Scenario: I can see a contact |
features/suivi_de_projet.feature
Outdated
| Given I am on "/suivi/etude/modifier/316BLA" | ||
| Then the response status code should be 200 | ||
| When I fill in "Nom interne de l'étude" with "975TET" | ||
| And I press "Enregistrer l'éude" |
features/suivi_de_projet.feature
Outdated
| Then the response status code should be 200 | ||
| When I select "1" from "Suiveur de projet" | ||
| When I fill in "Version du document" with "1" | ||
| When I select "2" from "Signataire Blackwater" |
There was a problem hiding this comment.
I select 5 from ...
<select id="Mgate_suivibundle_aptype_ap_signataire2" name="Mgate_suivibundle_aptype[ap][signataire2]" tabindex="-1" class="select2-hidden-accessible" aria-hidden="true">
<option value=""></option>
<option value="5" selected="selected">Elsa Petit</option>
</select>
features/suivi_de_projet.feature
Outdated
| Given I am on "/suivi/cc/rediger/2" | ||
| Then the response status code should be 200 | ||
| When I fill in "Version du document" with "1" | ||
| When I select "1" from "Signataire Blackwater" |
There was a problem hiding this comment.
I select 5 ... (more details above)
features/suivi_de_projet.feature
Outdated
| Then the url should match "/suivi/missions/modifier/2" | ||
| And I should see "Mission enregistrée" | ||
|
|
||
| Scenario: I can add a contact |
features/suivi_de_projet.feature
Outdated
|
|
||
| Scenario: I can add a contact | ||
| Given I am logged in as "suiveur" | ||
| Given I am on "/suivi/clientcontact/ajouter/15" |
There was a problem hiding this comment.
Etude 15 doesn't exist
Etude 315GLA: id 1
Etude 316BLA: id 2
Etude 322NIL: id 7
Etude 323PRR: id 8
features/suivi_de_projet.feature
Outdated
| When I fill in "Résumé du contact" with "Contact test" | ||
| When I fill in "Date du contact" with "2018-04-04" | ||
| And I press "Enregistrer le nouveau contact client" | ||
| Then the url should match "/suivi/clientcontact/voir/5" |
There was a problem hiding this comment.
I reinitialized the demo so you can get correct id placeholder data.
Anyway, there aren't clientcontact in demo data, thus this one will be id 1. As a consequence: Then the url should match "/suivi/clientcontact/voir/1"
features/suivi_de_projet.feature
Outdated
|
|
||
| Scenario: I can edit a contact | ||
| Given I am logged in as "suiveur" | ||
| Given I am on "/suivi/clientcontact/modifier/2" |
There was a problem hiding this comment.
Customer contact 2 won't exists in tests context.
| When I fill in "Présentation du projet" with "Etude test" | ||
| When I fill in "Description de la prestation proposée" with "Etude test" | ||
| And I press "Enregistrer l'AP" | ||
| Then the url should match "/suivi/etude/316BLA" |
There was a problem hiding this comment.
https://travis-ci.org/n7consulting/Incipio/builds/362300748#L3929
<th>
<label for="Mgate_suivibundle_aptype_ap_dateSignature">Date de Signature du document</label>
<ul><li>Cette valeur n'est pas valide.</li></ul>
</th>Surprisingly (you can PR it if you want), the date format for this specific field is 06/07/2015 (seen through the browser network inspector)
| When I fill in "Date de Signature du document" with "2015-07-06" | ||
| When I fill in "Pourcentage acompte" with "40" | ||
| And I press "Enregistrer la CC" | ||
| Then the url should match "/suivi/etude/316BLA" |
There was a problem hiding this comment.
There should also be an error on this action, which lead to the failure.
However, the source code display is too reduced. You can change it (to 10 000 for instance), in https://github.com/n7consulting/Incipio/blob/master/features/bootstrap/FeatureContext.php#L114
features/suivi_de_projet.feature
Outdated
| Given I am logged in as "suiveur" | ||
| Given I am on "/suivi/clientcontact/voir/1" | ||
| Then the response status code should be 200 | ||
| And I should see "Alice" |
There was a problem hiding this comment.
Names are random for each fixture load
No description provided.