Closed maratori closed 3 years ago
@maratori Ack! That's a bug. I created a pr to fix it. We need testing for the node rendering code. I currently research how to build a test-suite using aiohttp and selenium.
Btw: You don't have to call self.show()
from a callback. When Lona runs an input event handler that is not handle_request()
it looks for changes in the last shown HTML tree. If the tree is changed self.show()
gets called automatically.
Btw: You don't have to call
self.show()
from a callback. When Lona runs an input event handler that is nothandle_request()
it looks for changes in the last shown HTML tree. If the tree is changedself.show()
gets called automatically.
Didn't know, thanks!
I currently research how to build a test-suite using aiohttp and selenium.
I have some experience with selenium tests. There are great tools for that:
@maratori
I have some experience with selenium tests
\o/ That's what i wanted to hear :D lets discuss that in #74. I hope we can close this issue here today, i expect the testing discussion will be longer
Following view doesn't work
check all
should select all 4 inputs -> nothing happensuncheck all
-> nothing happensRoot cause
As far as I understand it doesn't work because of this javascript https://github.com/lona-web-org/lona/blob/497dd940aa9bcac6e761307f89920303b26e9955/lona/client/dom-renderer.js#L50-L51
and
https://github.com/lona-web-org/lona/blob/497dd940aa9bcac6e761307f89920303b26e9955/lona/client/dom-updater.js#L444-L445