-
- Downloads
[FIX] website_links: fix remaining bugs and restore skipped test
This commit is following c78da8a8 that fixed website_links module. We had to merge it with a skipped test as there was an error only appearing with Docker (on runbot or on local with Docker). This commit fix that test error and some other remaining bugs not found during the first fix: 1. Fix the test error by adding a step to show recently used links. Indeed the bug was that newest links would return inconsistent order as both 2 links created during the steps have the same creation date. On runbot it would click on the wrong link, the one which has 0 clicks. Then JS would crash (see error bellow). 2. `websiteLinksCharts` JS animation class would execute all the `start` method code even if there was no `_totalClicks`. JS would then crash as `beginDate` would not be set correctly. Before the refactoring all that code would be skipped as surrounded by an if/else condition. 3. BS3 to BS4 broke the nav-tabs layout to switch between 'Newest, Most Clicked and Recently Used. `mt16` needed to be removed. Closes #31829
Showing
- addons/website_links/static/src/js/test_ui_flow.js 5 additions, 1 deletionaddons/website_links/static/src/js/test_ui_flow.js
- addons/website_links/static/src/js/website_links_charts.js 1 addition, 0 deletionsaddons/website_links/static/src/js/website_links_charts.js
- addons/website_links/tests/test_ui.py 0 additions, 2 deletionsaddons/website_links/tests/test_ui.py
- addons/website_links/views/website_links_template.xml 1 addition, 1 deletionaddons/website_links/views/website_links_template.xml
Please register or sign in to comment