zenika-open-source / FAQ

Internal Knowledge Database for your organization
https://demo.faq.team
Apache License 2.0
61 stars 16 forks source link

:sparkles: specialists can nominate other specialists #374

Closed thibaudbrault closed 1 year ago

thibaudbrault commented 1 year ago

This allows specialists to nominate and demote other specialists of the same specialty, through the same screen as the admins.

In order to write an e2e test for this use case, we needed e2e tests to have more control over the user that is stored on the front end, so we had to refactor how the DISABLE_AUTH flag works.

hgwood commented 1 year ago

Il faudrait aussi ajouter un test e2e :)

thibaudbrault commented 1 year ago

Il faudrait aussi ajouter un test e2e :)

Le problème c'est qu'il y a la variable VITE_DISABLE_AUTH qui permet déjà d'accéder à cette partie et la variable isSpecialist dépend de auth.user qui est nul pour les tests