wpt.fyi icon indicating copy to clipboard operation
wpt.fyi copied to clipboard

Write web tests for Interop Dashboard components

Open DanielRyanSmith opened this issue 2 years ago • 4 comments

Now that the Interop Dashboard components have been separated into their own files, it would be nice to have some unit tests written that ensure the page is functioning as intended. Currently, there are no tests for any of these files.

The specific files are: webapp/components/interop-dashboard.js webapp/components/interop-data-manager.js webapp/components/interop-data.js webapp/components/interop-feature-chart.js webapp/components/interop-summary.js

DanielRyanSmith avatar Mar 24 '23 19:03 DanielRyanSmith

@DanielRyanSmith i would like to work on this issue, could you assign this to me.

SumantxD avatar Apr 01 '23 20:04 SumantxD

can i use jest as the testing library ?

SumantxD avatar Apr 01 '23 23:04 SumantxD

can i use jest as the testing library ?

I would recommend using mocha or chai if possible, as they are already used in the code!

KyleJu avatar Apr 03 '23 17:04 KyleJu

Hi, I tried writing some web tests (#3266) but I could not get them to work. Could I check if I'm missing something?

LeonardYam avatar Apr 20 '23 13:04 LeonardYam