Signify-epfl / signify-app

Signify is an application to learn and play with finger signs (ASL)
0 stars 0 forks source link

Refactor and mock login logic #240

Open ThomasMPont opened 1 week ago

ThomasMPont commented 1 week ago

Refactor login logic to make space for dependency injection. Decouple user id strings from user identification. Implement a mock version of Authentication logic, that will replace Google authentication through Firebase during tests.

For end-to-end tests to be able to access the app's screens, we must first have a way for tests to get past the login screen. This is done using a mock of the autentication process, that can reliably simulate a successful login.

ThomasMPont commented 1 week ago

I tried to refactor the sign-in process to make space for dependency injection. All logic around authentication is currently hardcoded into the login screen. Having spent around 5 hours trying to untangle this messy logic out of the screen, and other urgent tasks to do, I've decided to move on for now. I'll probably get back to this issue in a later sprint.