aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cypress/e2e/pages/blog.cy.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(pages): refine Blog pagesArmand Philippot2023-12-041-0/+13
| | | | | | | | | | * 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
* refactor(hooks): remove useSettings hookArmand Philippot2023-11-151-3/+3
| | | | | | | It does not make sense to re-export an existing object through a hook. On some pages both the hook and the object was imported... It is better to use the CONFIG (previously settings) object directly and by doing it we avoid potential errors because of conditional hooks.
* refactor(routes): replace hardcoded routes with constantsArmand Philippot2023-10-241-11/+19
| | | | | | | | It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-1/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* test(e2e): add loading more button test for blog pageArmand Philippot2022-06-031-0/+44