aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cypress
Commit message (Collapse)AuthorAgeFilesLines
* refactor(pages): refine Topic pagesArmand Philippot2023-12-011-0/+38
| | | | | | * add useTopic and useTopicsList hooks to refresh data * add a table of contents * add Cypress tests
* refactor(pages): refine Thematic pagesArmand Philippot2023-12-011-0/+41
| | | | | | | | | | | * add a table of contents (however posts heading are not included) * rename posts list section title * add a useThematic hook to refresh thematic contents * add a useThematicLists hook to refresh thematics list * add a `notIn` filter in thematics list fetcher to directly remove unwanted thematics * add Cypress tests
* refactor(pages): refine Article pagesArmand Philippot2023-12-011-0/+49
| | | | | | | | | | | * use rehype to update code blocks class names * fix widget heading level (after a level 1 it should always be a level 2 and not 3) * replace Spinner with LoadingPage and LoadingPageComments components to keep layout coherent * refactor useArticle and useComments hooks * fix URLs in JSON LD schema * add Cypress tests
* refactor(pages): refine CV pageArmand Philippot2023-11-291-2/+29
| | | | | | * reduce the number of statements by grouping the messages * remove LinkedIn from the widget (it is obviously not a repo and my CV is already here, no need to link to an external site)
* refactor(pages): improve HomepageArmand Philippot2023-11-291-1/+26
| | | | | | | | | * move custom homepage components that does not require props to the MDX file (links should not need to be translated here but where they are defined) * move SEO title and meta desc to MDX file * make Page component the wrapper instead of using a React fragment * fix MDX module types
* test: fix most of the e2e tests errorsArmand Philippot2023-11-155-33/+57
| | | | | | | | | * back-to-top test is not working: for some reasons, the link only appears when manually scrolling * search test has failure test: it seems the page meta is too long to load Anyway, the pages will be refactored and the e2e should also be refactored. But the back to top test remains problematic...
* refactor(hooks): remove useSettings hookArmand Philippot2023-11-152-6/+6
| | | | | | | 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-246-32/+52
| | | | | | | | 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-192-2/+2
| | | | | | 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 settings form testArmand Philippot2022-06-031-0/+177
|
* test(e2e): add other pages testArmand Philippot2022-06-034-0/+27
| | | | | Sometimes a build can be successful but the page is not working, so these tests allows me to check if the page is correctly loaded.
* test(e2e): add contact page testArmand Philippot2022-06-031-0/+41
|
* test(e2e): add loading more button test for blog pageArmand Philippot2022-06-031-0/+44
|
* test(e2e): add back to top button visibility testArmand Philippot2022-06-021-0/+14
|
* test(e2e): add search feature testArmand Philippot2022-06-021-0/+41
|
* test(e2e): add Footer navigation testArmand Philippot2022-06-021-0/+12
|
* test(e2e): add main navigation testArmand Philippot2022-06-021-0/+62
|
* test: install and configure cypressArmand Philippot2022-06-025-0/+63
I also configure Jest to avoid conflicts between Cypress and Jest.