Skip to content

Conversation

@thomashoarau
Copy link
Member

No description provided.

Copy link
Member

@Stoakes Stoakes left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing @dropschema annotation.

Example

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

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"
Copy link
Member

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>

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"
Copy link
Member

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)

Then the url should match "/suivi/missions/modifier/2"
And I should see "Mission enregistrée"

Scenario: I can add a contact
Copy link
Member

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


Scenario: I can add a contact
Given I am logged in as "suiveur"
Given I am on "/suivi/clientcontact/ajouter/15"
Copy link
Member

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

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"
Copy link
Member

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"


Scenario: I can edit a contact
Given I am logged in as "suiveur"
Given I am on "/suivi/clientcontact/modifier/2"
Copy link
Member

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"
Copy link
Member

@Stoakes Stoakes Apr 4, 2018

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&#039;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"
Copy link
Member

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

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"
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants