Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor firebase interactions into single utility class #216

Open
janikga opened this issue Apr 7, 2020 · 1 comment
Open

Refactor firebase interactions into single utility class #216

janikga opened this issue Apr 7, 2020 · 1 comment
Labels
enhancement New feature or request needs consideration Larger feature, needs sophisticated testing priority-low

Comments

@janikga
Copy link
Collaborator

janikga commented Apr 7, 2020

Motivation

Currently, tests that require firebase interactions are extremely flaky (e.g. for testing the interaction with entries in the dashboard component). For data seeding, they rely on creating postings and responses through clicks in the corresponding components. Instead, we should have a central utility that manages all interactions with firebase, namely:

  • posting help entries (ask-for-help collection)
  • creating responses (ask-for-help collection)
  • reporting entries (reported-posts collection)
  • marking entries as solved (solved-posts collection)

This utility can then be reused in the components where we interact with firebase. Finally, it can be used to easily seed the collections for testing.

@janikga janikga added the enhancement New feature or request label Apr 7, 2020
@janikga janikga mentioned this issue Apr 7, 2020
3 tasks
@janikga janikga added needs consideration Larger feature, needs sophisticated testing priority-not set yet labels Apr 8, 2020
@florianschmidt1994 florianschmidt1994 added this to the Technical dept milestone Apr 11, 2020
@mauriceackel
Copy link
Member

We should rather create utility functions inside the cypress project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs consideration Larger feature, needs sophisticated testing priority-low
Projects
None yet
Development

No branches or pull requests

4 participants