Permalink
Browse files

🚑 1) jQuery was missing at the time the code was executed; 2) Test fa…

…iled due to timeout.
  • Loading branch information...
RafiZz committed Nov 8, 2018
1 parent 8b1cf0b commit 704f0967bcafd363d1d3f98d38c944177af2acda
Showing with 4 additions and 4 deletions.
  1. +4 −4 web_debranding/tests/test_developer_mode_menu_elements.py
@@ -17,7 +17,7 @@ def test_01_remove_developer_mode_menu_elements(self):
url = '/web'
code = """
$(document).ready( function() {
document.addEventListener("DOMContentLoaded", function(event) {
setInterval(function(){
if (!$('header > nav > ul.o_menu_systray > li.o_user_menu > div.dropdown-menu').length) {
console.log('page is loading');
@@ -31,7 +31,7 @@ def test_01_remove_developer_mode_menu_elements(self):
}, 1000);
})
"""
self.phantom_js(url, code, login="demo")
self.phantom_js(url, code, login="demo", timeout=180)
def test_02_remove_developer_mode_menu_elements(self):
env = self.env
@@ -43,7 +43,7 @@ def test_02_remove_developer_mode_menu_elements(self):
url = '/web'
code = """
$(document).ready( function() {
document.addEventListener("DOMContentLoaded", function(event) {
setInterval(function(){
if (!$('header > nav > ul.o_menu_systray > li.o_user_menu > div.dropdown-menu').length) {
console.log('page is loading');
@@ -57,4 +57,4 @@ def test_02_remove_developer_mode_menu_elements(self):
}, 1000);
})
"""
self.phantom_js(url, code, login="admin")
self.phantom_js(url, code, login="admin", timeout=180)

0 comments on commit 704f096

Please sign in to comment.