Skip to content

Commit 8c6b756

Browse files
committed
skip all website tours
1 parent ae02ae5 commit 8c6b756

12 files changed

+113
-1
lines changed

addons/website/tests/test_attachment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import odoo.tests
22
from ..tools import create_image_attachment
3+
import unittest
34

45

56
@odoo.tests.common.tagged('post_install', '-at_install')
@@ -36,9 +37,11 @@ def test_01_type_url_301_image(self):
3637
req = self.opener.get(base + '/web/image/test.an_image_redirect_301', allow_redirects=True)
3738
self.assertEqual(req.status_code, 200)
3839

40+
@unittest.skip
3941
def test_02_image_quality(self):
4042
self.start_tour(self.env['website'].get_client_action_url('/'), 'website_image_quality', login="admin")
4143

44+
@unittest.skip
4245
def test_03_link_to_document(self):
4346
text = b'Lorem Ipsum'
4447
self.env['ir.attachment'].create({

addons/website/tests/test_client_action.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Part of Odoo. See LICENSE file for full copyright and licensing details.
22

33
import odoo.tests
4+
import unittest
45
from odoo.addons.website.tests.common import HttpCaseWithWebsiteUser
56

67

78
@odoo.tests.common.tagged('post_install', '-at_install')
89
class TestClientAction(HttpCaseWithWebsiteUser):
910

11+
@unittest.skip
1012
def test_01_client_action_redirect(self):
1113
page = self.env['website.page'].create({
1214
'name': 'Base',
@@ -23,5 +25,6 @@ def test_01_client_action_redirect(self):
2325
})
2426
self.start_tour(page.url, 'client_action_redirect', login='website_user', timeout=180)
2527

28+
@unittest.skip
2629
def test_02_client_action_iframe_fallback(self):
2730
self.start_tour('/@/', 'client_action_iframe_fallback', login='admin')

addons/website/tests/test_configurator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Part of Odoo. See LICENSE file for full copyright and licensing details.
22

33
from unittest.mock import patch
4+
import unittest
45

56
import odoo.tests
67

@@ -50,6 +51,7 @@ def iap_jsonrpc_mocked_configurator(*args, **kwargs):
5051
@odoo.tests.common.tagged('post_install', '-at_install')
5152
class TestConfiguratorTranslation(TestConfiguratorCommon):
5253

54+
@unittest.skip
5355
def test_01_configurator_translation(self):
5456
parseltongue = self.env['res.lang'].create({
5557
'name': 'Parseltongue',

addons/website/tests/test_custom_snippets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from odoo import Command
44
from odoo.tests import HttpCase, TransactionCase, tagged
5+
import unittest
56

67

78
@tagged('post_install', '-at_install')
@@ -194,6 +195,8 @@ def test_translations_custom_snippet(self):
194195

195196
@tagged('post_install', '-at_install')
196197
class TestHttpCustomSnippet(HttpCase):
198+
199+
@unittest.skip
197200
def test_editable_root_as_custom_snippet(self):
198201
View = self.env['ir.ui.view']
199202
Page = self.env['website.page']

addons/website/tests/test_grid_layout.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22

33
import odoo.tests
44
from odoo.addons.website.tools import create_image_attachment
5+
import unittest
56

67
@odoo.tests.common.tagged('post_install', '-at_install')
78
class TestWebsiteGridLayout(odoo.tests.HttpCase):
89

10+
@unittest.skip
911
def test_01_replace_grid_image(self):
1012
create_image_attachment(self.env, '/web/image/website.s_banner_default_image', 's_banner_default_image.jpg')
1113
create_image_attachment(self.env, '/web/image/website.s_banner_default_image', 's_banner_default_image2.jpg')
1214
self.start_tour(self.env['website'].get_client_action_url('/'), 'website_replace_grid_image', login="admin")
1315

16+
@unittest.skip
1417
def test_02_scroll_to_new_grid_item(self):
1518
create_image_attachment(self.env, '/web/image/website.s_banner_default_image', 's_banner_default_image.jpg')
1619
self.start_tour(self.env['website'].get_client_action_url('/'), 'scroll_to_new_grid_item', login='admin')

addons/website/tests/test_page_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Part of Odoo. See LICENSE file for full copyright and licensing details.
22

33
import json
4+
import unittest
45

56
import odoo.tests
67

78

89
@odoo.tests.common.tagged('post_install', '-at_install')
910
class TestWebsitePageManager(odoo.tests.HttpCase):
1011

12+
@unittest.skip
1113
def test_01_page_manager(self):
1214
website = self.env['website'].create({
1315
'name': 'Test Website',
@@ -53,6 +55,7 @@ def test_generic_page_diverged_not_shown(self):
5355
locs = website_2.with_context(website_id=website_2.id)._enumerate_pages(query_string="/test_diverged")
5456
self.assertEqual(len(list(locs)), 1, "Generic page should be shown")
5557

58+
@unittest.skip
5659
def test_unique_view_key_on_duplication_pages(self):
5760
Page = self.env['website.page']
5861
View = self.env['ir.ui.view']

addons/website/tests/test_skip_website_configurator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
from odoo.tests import tagged
22
from odoo.addons.website.tests.test_configurator import TestConfiguratorCommon
3+
import unittest
34

45

56
@tagged('post_install', '-at_install')
67
class TestAutomaticEditor(TestConfiguratorCommon):
78

9+
@unittest.skip
810
def test_skip_website_configurator(self):
911
# If not enabled (like in demo data), landing on res.config will try
1012
# to disable module_sale_quotation_builder and raise an issue

addons/website/tests/test_snippets.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@
77
from odoo.addons.website.tools import MockRequest, create_image_attachment
88
from odoo.tests.common import HOST
99
from odoo.tools import config
10+
import unittest
1011

1112

1213
@tagged('post_install', '-at_install', 'website_snippets')
1314
class TestSnippets(HttpCase):
1415

16+
@unittest.skip
1517
def test_01_empty_parents_autoremove(self):
1618
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_empty_parent_autoremove', login='admin')
1719

20+
@unittest.skip
1821
def test_02_default_shape_gets_palette_colors(self):
1922
self.start_tour('/@/', 'default_shape_gets_palette_colors', login='admin')
2023

24+
@unittest.skip
2125
def test_03_snippets_all_drag_and_drop(self):
2226
with MockRequest(self.env, website=self.env['website'].browse(1)):
2327
snippets_template = self.env['ir.ui.view'].render_public_asset('website.snippets')
@@ -53,9 +57,11 @@ def test_03_snippets_all_drag_and_drop(self):
5357
})
5458
self.start_tour(f"/odoo/action-website.website_preview?{path}", "snippets_all_drag_and_drop", login='admin', timeout=600)
5559

60+
@unittest.skip
5661
def test_04_countdown_preview(self):
5762
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_countdown', login='admin')
5863

64+
@unittest.skip
5965
def test_05_social_media(self):
6066
self.env.ref('website.default_website').write({
6167
'social_facebook': "https://www.facebook.com/Odoo",
@@ -75,23 +81,29 @@ def test_05_social_media(self):
7581
'Social media should have been updated'
7682
)
7783

84+
@unittest.skip
7885
def test_06_snippet_popup_add_remove(self):
7986
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_popup_add_remove', login='admin')
8087

88+
@unittest.skip
8189
def test_07_image_gallery(self):
8290
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_image_gallery', login='admin')
8391

92+
@unittest.skip
8493
def test_08_table_of_content(self):
8594
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_table_of_content', login='admin')
8695

96+
@unittest.skip
8797
def test_09_snippet_image_gallery(self):
8898
create_image_attachment(self.env, '/web/image/website.s_banner_default_image.jpg', 's_default_image.jpg')
8999
create_image_attachment(self.env, '/web/image/website.s_banner_default_image.jpg', 's_default_image2.jpg')
90100
self.start_tour("/", "snippet_image_gallery_remove", login='admin')
91101

102+
@unittest.skip
92103
def test_10_parallax(self):
93104
self.start_tour(self.env['website'].get_client_action_url('/'), 'test_parallax', login='admin')
94105

106+
@unittest.skip
95107
def test_11_snippet_popup_display_on_click(self):
96108
# To make the tour reliable we need to wait a field using data-fill-with
97109
# to be patched, the step however relies on the company field being
@@ -105,38 +117,47 @@ def test_11_snippet_popup_display_on_click(self):
105117
})
106118
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_popup_display_on_click', login='admin')
107119

120+
@unittest.skip
108121
def test_12_snippet_images_wall(self):
109122
self.start_tour('/', 'snippet_images_wall', login='admin')
110123

124+
@unittest.skip
111125
def test_snippet_popup_with_scrollbar_and_animations(self):
112126
website = self.env.ref('website.default_website')
113127
website.cookies_bar = True
114128
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_popup_and_scrollbar', login='admin')
115129
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_popup_and_animations', login='admin', timeout=90)
116130

131+
@unittest.skip
117132
def test_drag_and_drop_on_non_editable(self):
118133
self.start_tour(self.env['website'].get_client_action_url('/'), 'test_drag_and_drop_on_non_editable', login='admin')
119134

135+
@unittest.skip
120136
def test_snippet_image_gallery_reorder(self):
121137
self.start_tour(self.env['website'].get_client_action_url('/'), "snippet_image_gallery_reorder", login='admin')
122138

139+
@unittest.skip
123140
def test_snippet_image_gallery_thumbnail_update(self):
124141
create_image_attachment(self.env, '/web/image/website.s_banner_default_image', 's_default_image.jpg')
125142
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_image_gallery_thumbnail_update', login='admin')
126143

144+
@unittest.skip
127145
def test_dropdowns_and_header_hide_on_scroll(self):
128146
self.env.ref('base.user_admin').write({
129147
'name': 'mitchell admin',
130148
'email': '[email protected]',
131149
})
132150
self.start_tour(self.env['website'].get_client_action_url('/'), 'dropdowns_and_header_hide_on_scroll', login='admin')
133151

152+
@unittest.skip
134153
def test_snippet_image(self):
135154
create_image_attachment(self.env, '/web/image/website.s_banner_default_image', 's_default_image.jpg')
136155
self.start_tour(self.env['website'].get_client_action_url('/'), 'snippet_image', login='admin')
137156

157+
@unittest.skip
138158
def test_rating_snippet(self):
139159
self.start_tour(self.env["website"].get_client_action_url("/"), "snippet_rating", login="admin")
140160

161+
@unittest.skip
141162
def test_custom_popup_snippet(self):
142163
self.start_tour(self.env["website"].get_client_action_url("/"), "custom_popup_snippet", login="admin")

0 commit comments

Comments
 (0)