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

Add Front End Tests #1145

Open
12 tasks
c3ho opened this issue Oct 1, 2020 · 20 comments
Open
12 tasks

Add Front End Tests #1145

c3ho opened this issue Oct 1, 2020 · 20 comments
Labels
area: front-end type: enhancement New feature or request type: test Creation and development of test

Comments

@c3ho
Copy link
Contributor

c3ho commented Oct 1, 2020

What would you like to be added:
Add frontend tests, I think this should be broken up into multiple parts.

Why would you like this to be added:
We're using jest, created by facebook (creators of react) in the backend, let's leverage that for front-end testing as well

Components

  • Spinner: @tonyvugithub
  • SnackBar
  • SearchBar
  • ScrollToTop
  • LoadMoreButton
  • AdminButtons
  • DeleteFeedDialogButton
  • LogoIcon: @chrispinkney
  • LoggedIn
  • LoggedOut
  • Footer
  • DynamicBackgroundContainer
@c3ho c3ho added type: enhancement New feature or request area: front-end area: CI/CD Continuous integration / Continuous delivery type: test Creation and development of test labels Oct 1, 2020
@manekenpix manekenpix removed the area: CI/CD Continuous integration / Continuous delivery label Oct 1, 2020
@chrispinkney
Copy link
Contributor

I can give this one a shot, however I know next to nothing about testing (front end or otherwise) and my knowledge of react is pretty lacking. That being said I'm always interested in learning new technologies, and especially learning how telescope works under the hood (on the front end side at least.)

@manekenpix
Copy link
Member

@chrispinkney sure, I'll assign it to you. I'd also like to give this one a go since I've never done front-end testing. We can both work on it, just targeting different areas of the code (or we can collaborate).

@c3ho
Copy link
Contributor Author

c3ho commented Oct 4, 2020

This is going to be a big piece of work spanning multiple PRs, should we create project for it?

@manekenpix
Copy link
Member

I think we can create a project for tests, not only for front-end testing. What do you think?

@c3ho
Copy link
Contributor Author

c3ho commented Oct 4, 2020

Sounds great, we need to increase our test coverage for backend as well.

@cindyorangis
Copy link
Contributor

Not sure if I have the time to participate in writing test code but this is definitely something I'll be following closely. :)

@chrispinkney
Copy link
Contributor

@manekenpix sure I'd love to collaborate, either way I'll definitely need someone to bounce ideas off of haha.

@manekenpix
Copy link
Member

@chrispinkney
Copy link
Contributor

BTW @tonyvugithub also expressed interest in this issue

@tonyvugithub
Copy link
Contributor

Thanks @chrispinkney . Let's do it guy!

@tonyvugithub
Copy link
Contributor

tonyvugithub commented Oct 22, 2020

@manekenpix @chrispinkney : Do we have a guide how we should approach this in term of dividing the workload? Also @manekenpix mentioned that we could look at testing option from Gastby docs

@tonyvugithub
Copy link
Contributor

I talked to @chrispinkney a bit and agreed that we should discuss about which components each person should be taking care of.

@humphd
Copy link
Contributor

humphd commented Oct 22, 2020

The key to doing something like this is to split it up into lots of smaller PRs.

I would suggest you have one "meta" bug with a checklist, and people can claim an individual file to write tests for. This would then happen in a PR-per-file, and the meta bug can keep track of what is and isn't done, and who has claimed what.

At the top of this bug, you can do a Markdown checklist of all the parts to be tested and update it.

@tonyvugithub
Copy link
Contributor

@humphd :I agreed with all you mentioned. How do we create a "meta" bug? like we create an issue?

@c3ho
Copy link
Contributor Author

c3ho commented Oct 22, 2020

This could be the metabug and we mention all the front end test issues here

@tonyvugithub
Copy link
Contributor

@c3ho : So I guess one of the maintainers will create the checklist here. And either myself, or Josue or Chris will pick a component, write tests on it then create PR separately from this "meta". This meta then keep track of what have been done and approved. Do I understand it correctly?

@c3ho
Copy link
Contributor Author

c3ho commented Oct 22, 2020

Yeah I can update this with the files issues so they can all be mentioned. Feel free to file a issue for the component you’re creating the test for and just mention this specific issue

@tonyvugithub
Copy link
Contributor

tonyvugithub commented Oct 22, 2020

Hi all,
After talking to @manekenpix , we think we need a list of components for easy tracking. I made one myself. Please let me know if this is something we could use.
componentList.pdf

@humphd
Copy link
Contributor

humphd commented Oct 22, 2020

No to an external file. Let's do it in the issue please.

@tonyvugithub
Copy link
Contributor

tonyvugithub commented Oct 22, 2020

@humphd yes, I understand that as you have mentioned above. I just provide the list so the owner of the issue can use it as a reference to write up the md file here. Also, to consult everyone's opinions if my categorization of components makes sense. I should have been clearer when sharing the file. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: front-end type: enhancement New feature or request type: test Creation and development of test
Projects
None yet
Development

No branches or pull requests

6 participants