Skip to content

Commit

Permalink
Change les données de tests et met à jour les storyshots
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-rutkowski committed Jul 11, 2024
1 parent 7057823 commit 0fd5194
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ exports[`Storyshots app/Layout/Header Connected 1`] = `
<a
aria-controls="modal-header__menu"
className="fr-nav__link"
href="/collectivite/1/indicateurs/cles/"
href="/collectivite/1/indicateurs/cles/id/"
onClick={[Function]}
target="_self"
>
Expand Down Expand Up @@ -865,7 +865,7 @@ exports[`Storyshots app/Layout/Header Connected Visite 1`] = `
<a
aria-controls="modal-header__menu"
className="fr-nav__link"
href="/collectivite/1/indicateurs/cles/"
href="/collectivite/1/indicateurs/cles/id/"
onClick={[Function]}
target="_self"
>
Expand Down Expand Up @@ -1362,7 +1362,7 @@ exports[`Storyshots app/Layout/Header Connected Visite Support 1`] = `
<a
aria-controls="modal-header__menu"
className="fr-nav__link"
href="/collectivite/1/indicateurs/cles/"
href="/collectivite/1/indicateurs/cles/id/"
onClick={[Function]}
target="_self"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ exports[`Storyshots app/Layout Exemple 1`] = `
onClick={[Function]}
target="_self"
>
Répartition des fiches actions
Répartition des fiches action
</a>
</li>
</ul>
Expand All @@ -320,7 +320,7 @@ exports[`Storyshots app/Layout Exemple 1`] = `
<a
aria-controls="modal-header__menu"
className="fr-nav__link"
href="/collectivite/1/indicateurs/cles/"
href="/collectivite/1/indicateurs/cles/id/"
onClick={[Function]}
target="_self"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@ export default {
export const AvecConflits = {
args: {
definition: {unite: 'teqCO2'},
source: {id: 'pcaet', nom: 'PCAET', type: 'objectif'},
source: {id: 'pcaet', libelle: 'PCAET', type: 'objectif'},
comparaison: {
conflits: 2,
lignes: [
{annee: 2022, valeur: 141_299, nouvelleValeur: 150_000, conflit: true},
{annee: 2021, valeur: 141_299, nouvelleValeur: 140_000, conflit: true},
{
annee: 2022,
valeurAEcraser: 141_299,
valeurAAppliquer: 150_000,
conflit: true,
},
{
annee: 2021,
valeurAEcraser: 141_299,
valeurAAppliquer: 140_000,
conflit: true,
},
],
},
},
Expand All @@ -36,17 +46,23 @@ export const AvecConflitsEcrasement = {
export const SansConflits = {
args: {
definition: {unite: 'teqCO2'},
source: {id: 'pcaet', nom: 'PCAET', type: 'objectif'},
source: {id: 'pcaet', libelle: 'PCAET', type: 'objectif'},
comparaison: {
conflits: 0,
ajouts: 1,
lignes: [
{
annee: 2022,
nouvelleValeur: 141_299,
valeurAAppliquer: 141_299,
conflit: false,
estNouveau: true,
},
{annee: 2021, valeur: 141_299, nouvelleValeur: 141_299, conflit: false},
{
annee: 2021,
valeurAEcraser: 141_299,
valeurAAppliquer: 141_299,
conflit: false,
},
],
},
},
Expand All @@ -55,12 +71,22 @@ export const SansConflits = {
export const EnConflitPartiel = {
args: {
definition: {unite: 'teqCO2'},
source: {id: 'pcaet', nom: 'PCAET', type: 'objectif'},
source: {id: 'pcaet', libelle: 'PCAET', type: 'objectif'},
comparaison: {
conflits: 1,
lignes: [
{annee: 2022, valeur: 141_299, nouvelleValeur: 150_000, conflit: true},
{annee: 2021, valeur: 141_299, nouvelleValeur: 141_299, conflit: false},
{
annee: 2022,
valeurAEcraser: 141_299,
valeurAAppliquer: 150_000,
conflit: true,
},
{
annee: 2021,
valeurAEcraser: 141_299,
valeurAAppliquer: 141_299,
conflit: false,
},
],
},
},
Expand All @@ -73,12 +99,22 @@ export const EnConflitPartielEcrasement = {
export const VarianteResultats = {
args: {
definition: {unite: 'teqCO2'},
source: {id: 'pcaet', nom: 'PCAET', type: 'resultat'},
source: {id: 'pcaet', libelle: 'PCAET', type: 'resultat'},
comparaison: {
conflits: 1,
lignes: [
{annee: 2022, valeur: 141_299, nouvelleValeur: 150_000, conflit: true},
{annee: 2021, valeur: 141_299, nouvelleValeur: 141_299, conflit: false},
{
annee: 2022,
valeurAEcraser: 141_299,
valeurAAppliquer: 150_000,
conflit: true,
},
{
annee: 2021,
valeurAEcraser: 141_299,
valeurAAppliquer: 141_299,
conflit: false,
},
],
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="avant"
>
<tr>
<td>
2022
Expand Down Expand Up @@ -156,7 +158,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="apres"
>
<tr>
<td>
141 299
Expand Down Expand Up @@ -273,7 +277,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="avant"
>
<tr>
<td>
2022
Expand Down Expand Up @@ -330,7 +336,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="apres"
>
<tr>
<td>
150 000
Expand Down Expand Up @@ -446,7 +454,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="avant"
>
<tr>
<td>
2022
Expand Down Expand Up @@ -503,7 +513,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="apres"
>
<tr>
<td>
141 299
Expand Down Expand Up @@ -620,7 +632,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="avant"
>
<tr>
<td>
2022
Expand Down Expand Up @@ -677,7 +691,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="apres"
>
<tr>
<td>
150 000
Expand Down Expand Up @@ -747,7 +763,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="avant"
>
<tr>
<td>
2022
Expand Down Expand Up @@ -802,7 +820,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="apres"
>
<tr>
<td>
141 299
Expand Down Expand Up @@ -918,7 +938,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="avant"
>
<tr>
<td>
2022
Expand Down Expand Up @@ -975,7 +997,9 @@ exports[`Storyshots app/pages/collectivite/Indicateurs/detail/ApplyOpenDataModal
</th>
</tr>
</thead>
<tbody>
<tbody
data-test="apres"
>
<tr>
<td>
141 299
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exports[`Storyshots app/pages/collectivite/Users/components/Invite Mode Admin 1`
className="flex grow flex-wrap gap-2 mr-4"
>
<span
className="my-auto text-left text-xs text-grey-6 line-clamp-1"
className="my-auto text-left text-sm text-grey-6 line-clamp-1"
>
Sélectionner une option
</span>
Expand Down Expand Up @@ -160,7 +160,7 @@ exports[`Storyshots app/pages/collectivite/Users/components/Invite Mode Edition
className="flex grow flex-wrap gap-2 mr-4"
>
<span
className="my-auto text-left text-xs text-grey-6 line-clamp-1"
className="my-auto text-left text-sm text-grey-6 line-clamp-1"
>
Sélectionner une option
</span>
Expand Down

0 comments on commit 0fd5194

Please sign in to comment.