Open upsiflu opened 1 year ago
As of now, we can test functions but not applications. Since so much hinges on the Url state properly mapped to the Ui, a suite for testing edge cases would be amazing.
elm-program-test: https://package.elm-lang.org/packages/avh4/elm-program-test/latest/
Do all Link types work?
Bounce
Toggle
Is the syntax reflected in the Ui.view?
Ui.view
at
wrap
++
Are links in Html rendered correctly?
[ ] Formulate user journeys with assertions alongside the exposed functions in the exposed modules: a typical example, and perhaps some edge cases.
Restrictive [ ] application
Restrictive
Ui [ ] singleton [ ] wrap [ ] ++ [ ] view with every layout module State [ ] init [ ] next with every Link constructor [ ] fromString [ ] toString [ ] view
Ui
layout
State
Link
Example
As of now, we can test functions but not applications. Since so much hinges on the Url state properly mapped to the Ui, a suite for testing edge cases would be amazing.
elm-program-test: https://package.elm-lang.org/packages/avh4/elm-program-test/latest/
Do all Link types work?
Bounce
andToggle
: New tabs get absolute links while running SPAs interpret relative linksIs the syntax reflected in the
Ui.view
?at
,wrap
and++
Are links in Html rendered correctly?
[ ] Formulate user journeys with assertions alongside the exposed functions in the exposed modules: a typical example, and perhaps some edge cases.
Example
which includes all the tests