aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/wp-posts.fixture.ts
Commit message (Collapse)AuthorAgeFilesLines
* test(e2e): fix broken Cypress testsArmand Philippot2023-12-141-9/+264
| | | | | | | | Since #93db24b MSW is used in Cypress tests to intercept requests. Some tests relied on WordPress data so it becames broken. Tests are now successful but there are still some issues with hydration because all GraphQL requests are not intercepted and data are mixed between WordPress and fixtures.
* test(services): add tests for createComment mutationArmand Philippot2023-12-111-0/+31
| | | | | * add Jest test * add a Cypress test in article pages spec
* refactor(pages): refine Blog pagesArmand Philippot2023-12-041-2/+2
| | | | | | | | | | * replace usePostsList with useArticlesList to keep names coherent * remove useIsMounted hook * rewrite useRedirection hook * add redirect in getStaticProps to avoid unecessary fetching * move Pagination component in a noscript tag * use hooks to refresh thematics and topics lists * complete Cypress tests
* test(services): add tests for posts fetchersArmand Philippot2023-11-281-0/+177