[FIX] web, website: fix tests giving 404 error

-Some tests where moved without addapting the path to them:
path is now update and tests fixed.

-A picture was removed in commit 4dce6cc98b but
still referenced in template website_twitter_snippet.

-A test was missing a data leading to the wrong path to image beeing loaded
This commit is contained in:
XavierDo
2018-08-22 14:41:02 +02:00
parent 9b1daa1218
commit a4dfa6e354
4 changed files with 9 additions and 7 deletions
@@ -77,6 +77,7 @@ QUnit.module('hr_org_chart', {
job_name: 'Sub-Gooroo',
link: 'fake_link',
name: 'Michael Hawkins',
id: 2,
}],
managers: [],
managers_more: false,
@@ -129,6 +130,7 @@ QUnit.module('hr_org_chart', {
job_name: 'Sub-Gooroo',
link: 'fake_link',
name: 'Michael Hawkins',
id: 2,
}],
managers: [{
direct_sub_count: 1,
@@ -1,4 +1,4 @@
odoo.define('web.basic_fields_tests', function (require) {
odoo.define('web.basic_fields_mobile_tests', function (require) {
"use strict";
var FormView = require('web.FormView');
@@ -109,13 +109,13 @@ QUnit.module('basic_fields', {
arch: '<tree editable="bottom"><field name="foo" widget="phone"/></tree>',
});
assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').length, 5,
"should have 5 cells");
assert.strictEqual(list.$('.o_data_row').length, 3,
"should have 3 record");
assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').first().text(), 'yop',
"value should be displayed properly");
var $phoneLink = list.$('a.o_form_uri.o_field_widget');
assert.strictEqual($phoneLink.length, 5,
assert.strictEqual($phoneLink.length, 3,
"should have anchors with correct classes");
assert.strictEqual($phoneLink.first().attr('href'), 'tel:yop',
"should have proper tel prefix");
@@ -135,7 +135,7 @@ QUnit.module('basic_fields', {
assert.strictEqual(list.$('tbody td:not(.o_list_record_selector)').first().text(), 'new',
"value should be properly updated");
$phoneLink = list.$('a.o_form_uri.o_field_widget');
assert.strictEqual($phoneLink.length, 5,
assert.strictEqual($phoneLink.length, 3,
"should still have anchors with correct classes");
assert.strictEqual($phoneLink.first().attr('href'), 'tel:new',
"should still have proper tel prefix");
+2 -2
View File
@@ -642,8 +642,8 @@
<script type="text/javascript" src="/web/static/tests/views/calendar_mobile_tests.js"></script>
<script type="text/javascript" src="/web/static/tests/views/kanban_mobile_tests.js"></script>
<script type="text/javascript" src="/web/static/tests/views/form_mobile_tests.js"></script>
<script type="text/javascript" src="/web/static/tests/views/basic_fields_mobile_tests.js"></script>
<script type="text/javascript" src="/web/static/tests/views/relational_fields_mobile_tests.js"></script>
<script type="text/javascript" src="/web/static/tests/fields/basic_fields_mobile_tests.js"></script>
<script type="text/javascript" src="/web/static/tests/fields/relational_fields_mobile_tests.js"></script>
</t>
<div id="qunit"/>
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB