summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/tests
diff options
context:
space:
mode:
authorOkan SUMER (osu) <osu@odoo.com>2020-03-19 09:42:59 +0000
committerJeremy Kersten <jke@odoo.com>2020-05-14 18:27:00 +0000
commit645056554ee38b5b96aeb53b6ed59cdb8e41b74c (patch)
treefd3da254310ab1051a54d0376b5773b78bca3b85 /addons/website_forum/static/tests
parentb86902040169c612544cd710c6b0025c8b43ddbe (diff)
[IMP] website_forum: frontend improvements and corrections
This commit adds new features and corrects some others in the frontend of website_forum app. - In the "about" section of a forum, use the s_accordion instead of a custom one for the first 3 elements, the last one is on a new page accessible from a link below the accordion - Cut the description after a specific amount of characters in the page where all forum are listed - In that same view, create options that show the number of post and the last post a forum has. Create an option to render forums in list view - Allow the user to cancel his vote (down or up) - Hide the answer box in the post view. Make it appear when the user click on the "answer" button - Use a JS public widget to validate a Post form (new, save, comment) - Enable the modification of a forum's image from the frontend - Hide Solved/Unsolved categories in "Discussion" forums - Disable the possibility to add snippets to an answer - Corrections of tours that broke after these modifications Part of https://github.com/odoo/odoo/pull/46634 task-2201708
Diffstat (limited to 'addons/website_forum/static/tests')
-rw-r--r--addons/website_forum/static/tests/tours/website_forum_question.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/website_forum/static/tests/tours/website_forum_question.js b/addons/website_forum/static/tests/tours/website_forum_question.js
index b2f549aed83..be292067db6 100644
--- a/addons/website_forum/static/tests/tours/website_forum_question.js
+++ b/addons/website_forum/static/tests/tours/website_forum_question.js
@@ -35,7 +35,13 @@ odoo.define('website_forum.tour_forum_question', function (require) {
content: "Close modal once modal animation is done.",
extra_trigger: 'div.modal.modal_shown',
trigger: ".modal-header button.close",
- }, {
+ },
+ {
+ trigger: "a:contains(\"Answer\").collapsed",
+ content: "Click to answer.",
+ position: "bottom",
+ },
+ {
content: "Put your answer here.",
trigger: '.note-editable p',
run: 'text First Answer',