publiclab / infragram

A minimal core of the Infragram.org project in JavaScript
https://infragram.org/sandbox/
GNU General Public License v2.0
44 stars 166 forks source link

Discuss write test on new Infragram UI #448

Closed Forchapeatl closed 1 year ago

Forchapeatl commented 2 years ago

Write UI tests for new Infragram UI, using Jest (https://jestjs.io/)

Hello @jywarren . I needed your consultatation on a few request.

  1. I have gained familiarity with the src/ui directory, as a result I wish to plead that during this period I conduct jestjs on the files of that directory as I don't fully understand how to stimulate file uploads and camera feeds as per the src/io where most of the events are dealing with media data upload / download. The src/processors returns mathematical values and I still haven't been able to get Jestjs stimulate Canvas pixels. same goes with the src/util folder.
  2. In summary. I wish to plead that during this internship period I conduct Jestjs test on the src/ui folder as there are available resources on manipulating DOM element on jstest. If you don't mind.
jywarren commented 2 years ago

Yes, i think testing the UI sounds great -- it's actually far more prone to bugs and errors anyways. There are ways to simulate uploads and canvas, but it's quite complex. You can see some of this at https://github.com/publiclab/image-sequencer if you're interested, but it's a lot of work to do!

On Thu, Aug 18, 2022 at 6:44 PM FORCHA @.***> wrote:

Write UI tests for new Infragram UI, using Jest (https://jestjs.io/)

Hello @jywarren https://github.com/jywarren . I needed your consultatation on a few request.

  1. I have gained familiarity with the src/ui https://github.com/publiclab/infragram/tree/main/src/ui directory, as a result I wish to plead that during this period I conduct jestjs on the files of that directory as I don't fully understand how to stimulate file uploads and camera feeds as per the src/io https://github.com/publiclab/infragram/tree/main/src/io where most of the events are dealing with media data upload / download. The src/processors https://github.com/publiclab/infragram/tree/main/src/processors returns mathematical values and I still haven't been able to get Jestjs stimulate Canvas pixels. same goes with the src/util https://github.com/publiclab/infragram/tree/main/src/util folder.
  2. In summary. I wish to plead that during this internship period I conduct Jestjs test on the src/ui https://github.com/publiclab/infragram/tree/main/src/ui folder as there are available resources on manipulating DOM element on jstest. If you don't mind.

— Reply to this email directly, view it on GitHub https://github.com/publiclab/infragram/issues/448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6J6RQW5GPZC5QPIRAZ3VZ24FJANCNFSM566Y7ZYA . You are receiving this because you were mentioned.Message ID: @.***>

Forchapeatl commented 2 years ago

Thank you