7
7
from odoo .addons .website .tools import MockRequest , create_image_attachment
8
8
from odoo .tests .common import HOST
9
9
from odoo .tools import config
10
+ import unittest
10
11
11
12
12
13
@tagged ('post_install' , '-at_install' , 'website_snippets' )
13
14
class TestSnippets (HttpCase ):
14
15
16
+ @unittest .skip
15
17
def test_01_empty_parents_autoremove (self ):
16
18
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_empty_parent_autoremove' , login = 'admin' )
17
19
20
+ @unittest .skip
18
21
def test_02_default_shape_gets_palette_colors (self ):
19
22
self .start_tour ('/@/' , 'default_shape_gets_palette_colors' , login = 'admin' )
20
23
24
+ @unittest .skip
21
25
def test_03_snippets_all_drag_and_drop (self ):
22
26
with MockRequest (self .env , website = self .env ['website' ].browse (1 )):
23
27
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):
53
57
})
54
58
self .start_tour (f"/odoo/action-website.website_preview?{ path } " , "snippets_all_drag_and_drop" , login = 'admin' , timeout = 600 )
55
59
60
+ @unittest .skip
56
61
def test_04_countdown_preview (self ):
57
62
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_countdown' , login = 'admin' )
58
63
64
+ @unittest .skip
59
65
def test_05_social_media (self ):
60
66
self .env .ref ('website.default_website' ).write ({
61
67
'social_facebook' : "https://www.facebook.com/Odoo" ,
@@ -75,23 +81,29 @@ def test_05_social_media(self):
75
81
'Social media should have been updated'
76
82
)
77
83
84
+ @unittest .skip
78
85
def test_06_snippet_popup_add_remove (self ):
79
86
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_popup_add_remove' , login = 'admin' )
80
87
88
+ @unittest .skip
81
89
def test_07_image_gallery (self ):
82
90
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_image_gallery' , login = 'admin' )
83
91
92
+ @unittest .skip
84
93
def test_08_table_of_content (self ):
85
94
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_table_of_content' , login = 'admin' )
86
95
96
+ @unittest .skip
87
97
def test_09_snippet_image_gallery (self ):
88
98
create_image_attachment (self .env , '/web/image/website.s_banner_default_image.jpg' , 's_default_image.jpg' )
89
99
create_image_attachment (self .env , '/web/image/website.s_banner_default_image.jpg' , 's_default_image2.jpg' )
90
100
self .start_tour ("/" , "snippet_image_gallery_remove" , login = 'admin' )
91
101
102
+ @unittest .skip
92
103
def test_10_parallax (self ):
93
104
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'test_parallax' , login = 'admin' )
94
105
106
+ @unittest .skip
95
107
def test_11_snippet_popup_display_on_click (self ):
96
108
# To make the tour reliable we need to wait a field using data-fill-with
97
109
# 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):
105
117
})
106
118
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_popup_display_on_click' , login = 'admin' )
107
119
120
+ @unittest .skip
108
121
def test_12_snippet_images_wall (self ):
109
122
self .start_tour ('/' , 'snippet_images_wall' , login = 'admin' )
110
123
124
+ @unittest .skip
111
125
def test_snippet_popup_with_scrollbar_and_animations (self ):
112
126
website = self .env .ref ('website.default_website' )
113
127
website .cookies_bar = True
114
128
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_popup_and_scrollbar' , login = 'admin' )
115
129
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_popup_and_animations' , login = 'admin' , timeout = 90 )
116
130
131
+ @unittest .skip
117
132
def test_drag_and_drop_on_non_editable (self ):
118
133
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'test_drag_and_drop_on_non_editable' , login = 'admin' )
119
134
135
+ @unittest .skip
120
136
def test_snippet_image_gallery_reorder (self ):
121
137
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), "snippet_image_gallery_reorder" , login = 'admin' )
122
138
139
+ @unittest .skip
123
140
def test_snippet_image_gallery_thumbnail_update (self ):
124
141
create_image_attachment (self .env , '/web/image/website.s_banner_default_image' , 's_default_image.jpg' )
125
142
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_image_gallery_thumbnail_update' , login = 'admin' )
126
143
144
+ @unittest .skip
127
145
def test_dropdowns_and_header_hide_on_scroll (self ):
128
146
self .env .ref ('base.user_admin' ).write ({
129
147
'name' : 'mitchell admin' ,
130
148
131
149
})
132
150
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'dropdowns_and_header_hide_on_scroll' , login = 'admin' )
133
151
152
+ @unittest .skip
134
153
def test_snippet_image (self ):
135
154
create_image_attachment (self .env , '/web/image/website.s_banner_default_image' , 's_default_image.jpg' )
136
155
self .start_tour (self .env ['website' ].get_client_action_url ('/' ), 'snippet_image' , login = 'admin' )
137
156
157
+ @unittest .skip
138
158
def test_rating_snippet (self ):
139
159
self .start_tour (self .env ["website" ].get_client_action_url ("/" ), "snippet_rating" , login = "admin" )
140
160
161
+ @unittest .skip
141
162
def test_custom_popup_snippet (self ):
142
163
self .start_tour (self .env ["website" ].get_client_action_url ("/" ), "custom_popup_snippet" , login = "admin" )
0 commit comments