summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/tests
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2020-01-17 10:16:28 +0000
committerJeremy Kersten <jke@odoo.com>2020-01-17 12:45:23 +0000
commita62abf22d0434968a77fdadc6a858a70c5e0f08a (patch)
tree0eae301ce8542b2a9d9b9a2219a5956698950a23 /addons/website_forum/static/tests
parent071e03f1782a7ac6033d2f424275892ef89d2e4c (diff)
[FIX] website_forum: test - wait modal shown
Wait that modal animation is finished before to close it. closes odoo/odoo#43487 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_forum/static/tests')
-rw-r--r--addons/website_forum/static/tests/tours/website_forum_question.js15
1 files changed, 10 insertions, 5 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 eee77685c82..8457d58640f 100644
--- a/addons/website_forum/static/tests/tours/website_forum_question.js
+++ b/addons/website_forum/static/tests/tours/website_forum_question.js
@@ -29,8 +29,12 @@ odoo.define('website_forum.tour_forum_question', function (require) {
trigger: 'button:contains("Post Your Question")',
}, {
content: "This page contain new created question.",
- extra_trigger: '#wrap:has(".fa-star")',
- trigger: 'button[data-dismiss="modal"]',
+ trigger: '#wrap:has(".fa-star")',
+ run: function() {}, //it's a check that page has been reloaded,
+ }, {
+ content: "Close modal once modal animation is done.",
+ extra_trigger: 'div.modal.modal_shown',
+ trigger: ".modal-header button.close",
}, {
content: "Put your answer here.",
trigger: '.note-editable p',
@@ -40,11 +44,12 @@ odoo.define('website_forum.tour_forum_question', function (require) {
extra_trigger: '.note-editable:not(:has(br))',
trigger: 'button:contains("Post Answer")',
}, {
- content: "This page contain new created question and its answer.",
- extra_trigger: '#wrap:has(".o_wforum_validate_toggler")',
- trigger: 'button[data-dismiss="modal"]',
+ content: "Close modal once modal animation is done.",
+ extra_trigger: 'div.modal.modal_shown',
+ trigger: ".modal-header button.close",
}, {
content: "Click here to accept this answer.",
+ extra_trigger: '#wrap:has(".o_wforum_validate_toggler")',
trigger: '.o_wforum_validate_toggler[data-karma="20"]:first',
}, {
content: "Congratulations! You just created and post your first question and answer.",