Permalink
Browse files

🛡 random error in CI test

  • Loading branch information...
yelizariev committed Dec 19, 2018
1 parent ea9828b commit d616e1cac999dbf33e80a3dc134f191d13f32273
Showing with 5 additions and 1 deletion.
  1. +5 −1 web_debranding/tests/test_developer_mode_menu_elements.py
@@ -26,11 +26,15 @@ def test_01_remove_developer_mode_menu_elements(self):
console.log('page is loading');
return;
}
setTimeout(function(){
// request ..../res.users/is_admin may take some time
// TODO: add a way to check that it's a time to check result (variable on loading in web_debranding/static/src/js/user_menu.js ?)
if ($('li a[data-menu="debug"]').length > 0 || $('li a[data-menu="debugassets"]').length > 0) {
console.log('error', 'Developer mode menu elements are displayed for not admin user');
console.log('error', 'Developer mode menu elements are displayed for non-admin user');
} else {
console.log('ok');
}
}, 1000);
}, 1000);
})
"""

0 comments on commit d616e1c

Please sign in to comment.