Skip to content

Commit

Permalink
fix(frontend): add references on contribution generic answer (#3328)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel authored Feb 25, 2021
1 parent 095f12f commit 99a1b04
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optional/e2e/README.md
Original file line number Diff line number Diff line change
@@ -14,9 +14,9 @@ See the [Gherkin | Codeceptjs | Puppeteer documentation](runners/puppeteer).

## Adding a new test

> As example, we are going to add a test for the ``
> As example, we are going to add a test for the `konami code`
1. Create a `.feature` file
1. Create a `konami-code.feature` file
1. Write your Gherkin
1. Run `yarn codeceptjs gherkin:snippets` in each codeceptjs runners
1. Implement the missing snippets
3 changes: 2 additions & 1 deletion optional/e2e/features/contributions/contribution.feature
Original file line number Diff line number Diff line change
@@ -10,5 +10,6 @@ Fonctionnalité: Contributions

Alors je vois "Que dit le code du travail"
Alors je vois "Texte applicable"
Alors je vois "article L1242-3 du code du travail"
Alors je vois "Références"
Alors je vois "L1242-8-1"
Alors je vois "Que dit votre convention collective"
Original file line number Diff line number Diff line change
@@ -192,6 +192,7 @@ const Contribution = ({ answers, content }) => {
markdown={answers.generic.markdown}
components={rehypeToReact(content)}
/>
<References references={answers.generic.references} />
</section>
)}
{hasConventionAnswers && (

0 comments on commit 99a1b04

Please sign in to comment.