You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Following #1898 , it would be useful to have a tests / test mode for WebUI
Describe the solution you'd like
https://gitter.im/tinkerman-cat/espurna?at=5d717445ae44a8412487f6c3
One of the options is to have a dummy web-server (node.js is a likely choice) that can WebUI page can interact with.
As an alternative, web page itself should have a special mode for running from file:/// (current check could be extended)
General test suite for .js code would also be useful.
Describe alternatives you've considered
-
Additional context
-
The text was updated successfully, but these errors were encountered:
Hi, I'm learning web development and using Cypress to make E2E testing using screenshot testing, and if we can mock the WebSocket using jest-websocket-mock commented here #1933 (comment), I think its a good way to go to create Web UI tests very easy.
Re-quoting #1933 (comment), the point of mentioning local webserver was to possibly reuse some of the code in case Arduino & support libraries are mocked / redone to run on the host if that would be useful. And I think I also thought about a way to locally run the WebUI as-would-be on the device, without going about unhiding menus and panels manually.
fwiw the current webui's only entrypoint is the processData function (minus connectTo...), so local tests could already somehow work if something loads up index.html as document and feed data objects to it.
...and I would say I have not done as much progress on this as I would've liked to...
Is your feature request related to a problem? Please describe.
Following #1898 , it would be useful to have a tests / test mode for WebUI
Describe the solution you'd like
https://gitter.im/tinkerman-cat/espurna?at=5d717445ae44a8412487f6c3
One of the options is to have a dummy web-server (node.js is a likely choice) that can WebUI page can interact with.
As an alternative, web page itself should have a special mode for running from
file:///
(current check could be extended)General test suite for .js code would also be useful.
Describe alternatives you've considered
-
Additional context
-
The text was updated successfully, but these errors were encountered: