-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contribution): handle new contrib display (#5441)
* feat(contribution): handle new contrib display * revert changes * fix: ajout des modif * fix: modif clean * fix: modif clean * fix: modif clean * fix: xss * fix test * fix case when strong element with accordion summary * remove * fix: xss * put tst es index * fix build * update index * map table elements * handle multiple items accordion * spec + new index * try to fix query to get all contribs * add spec * add tests for events on contrib page * Empty-Commit * fix: branch * fix test * new index * update index * revert changes * revert changes * include only generics in /contribution page * fix nested summary * fix: retours de romain * feat(metallurgie): affichage au nouveau format pour les anciennes contribs pour les 2 question qui seront déployés (4 et 23). (#5445) * remove H2 + update test * "Texte applicable" spécifique pour question 4 * new index * Update packages/code-du-travail-frontend/src/contributions/ContributionCCPoc.tsx Co-authored-by: Maxime Golfier <[email protected]> * fix: migrations * revert index * fix: unit test --------- Co-authored-by: maxgfr <[email protected]> Co-authored-by: Martial Maillot <[email protected]>
- Loading branch information
1 parent
e57e7bf
commit 0db0c23
Showing
48 changed files
with
8,123 additions
and
696 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...ages/code-du-travail-frontend/cypress/integration/contributions/contributions-old.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
describe("Contributions", () => { | ||
it("je vois une page contribution", () => { | ||
cy.visit("/contribution/quelle-peut-etre-la-duree-maximale-dun-cdd"); | ||
cy.get("h1").should( | ||
"have.text", | ||
"Quelle peut être la durée maximale d'un CDD ?" | ||
); | ||
cy.get("body").should("contain", "Que dit le code du travail"); | ||
cy.get("body").should("contain", "Texte applicable"); | ||
cy.get("body").should("contain", "Références"); | ||
cy.get("body").should("contain", "L1242-8-1"); | ||
cy.get("body").should("contain", "Que dit votre convention collective"); | ||
}); | ||
|
||
it("je vois une page contribution pour une CC", () => { | ||
cy.visit("/contribution/2941-quelle-peut-etre-la-duree-maximale-dun-cdd"); | ||
cy.get("h1").should( | ||
"have.text", | ||
"Quelle peut être la durée maximale d'un CDD ?" | ||
); | ||
cy.get("h2").should( | ||
"contain", | ||
"Que dit la convention Aide, accompagnement, soins et services à domicile (BAD) ?" | ||
); | ||
|
||
cy.get("body").should( | ||
"contain", | ||
"Consultez les questions-réponses fréquentes pour la convention collective Aide, accompagnement, soins et services à domicile (BAD)" | ||
); | ||
|
||
cy.contains( | ||
"la convention collective Aide, accompagnement, soins et services à domicile (BAD)" | ||
).should( | ||
"have.attr", | ||
"href", | ||
"/convention-collective/2941-aide-accompagnement-soins-et-services-a-domicile-bad" | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.