Skip to content

Commit

Permalink
🛡️ random error in CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Yelizariev committed Dec 19, 2018
1 parent ea9828b commit d616e1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web_debranding/tests/test_developer_mode_menu_elements.py
Expand Up @@ -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);
})
"""
Expand Down

0 comments on commit d616e1c

Please sign in to comment.