77from odoo .addons .website .tools import MockRequest , create_image_attachment
88from odoo .tests .common import HOST
99from odoo .tools import config
10+ import unittest
1011
1112
1213@tagged ('post_install' , '-at_install' , 'website_snippets' )
1314class 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' ,
130148131149 })
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