-
Notifications
You must be signed in to change notification settings - Fork 18
Create suivi_de_projet.feature #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Create suivi_de_projet.feature #248
Conversation
Stoakes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing @dropschema annotation.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add a customer 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Names are random for each fixture load
No description provided.